# LimeSuite API Code

**URL:** <https://discourse.myriadrf.org/t/limesuite-api-code/6800>\
**Category:** Lime Suite\
**Created:** [23 December 2020 13:51 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800 "2020-12-23T13:51:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ugy99](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@ugy99](https://discourse.myriadrf.org/u/ugy99)\
**Post date:** [23 December 2020 13:51 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/1 "2020-12-23T13:51:54Z")

</div>

How do I build and write my LimeSuite API c program to my limesdr? I have not been able to come across any tutorials on this.

Thank you.

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [23 December 2020 15:04 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/2 "2020-12-23T15:04:20Z")

</div>

There are examples in LimeSuite-20.10.0/src/examples.

basicRX.cpp is a receiver

basicTX.cpp is a transmitter.

> **[Release v20.10.0 · myriadrf/LimeSuite](https://github.com/myriadrf/LimeSuite/releases/tag/v20.10.0)**
>
> Lime Suite v20.10.0

---

<div class="post-metadata">

**Author:** ![ugy99](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@ugy99](https://discourse.myriadrf.org/u/ugy99)\
**Post date:** [23 December 2020 15:09 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/3 "2020-12-23T15:09:28Z")

</div>

yes I have seen the examples but I am wondering about how I can build these example codes and then upload them to the board

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [23 December 2020 15:16 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/4 "2020-12-23T15:16:25Z")

</div>

The examples run as an application on the computer - you don’t upload them to the board.

g++ -std=c++11 -o basicRX basicRX.cpp -lLimeSuite  
./basicRX

is all that you do.

---

<div class="post-metadata">

**Author:** ![ugy99](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@ugy99](https://discourse.myriadrf.org/u/ugy99)\
**Post date:** [23 December 2020 15:20 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/5 "2020-12-23T15:20:50Z")

</div>

@RightHalfPlane Now everything makes so much more sense!!! Thanks a lot man! But they do run on LimeSDR when I run these programmes so its not just for some sort of simulation purposes right?

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [23 December 2020 15:26 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/6 "2020-12-23T15:26:20Z")

</div>

If you have you LimeSDR pulled into to usb. The basicRX program sets the center frequency to 800 MHZ and the Sample Rate to 8 MHZ and reads the data from the LimeSDR.

---

<div class="post-metadata">

**Author:** ![ugy99](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@ugy99](https://discourse.myriadrf.org/u/ugy99)\
**Post date:** [23 December 2020 15:29 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/7 "2020-12-23T15:29:09Z")

</div>

> [@RightHalfPlane](#):
>
> usb. The basicRX program sets the center frequency to 800 MHZ and the Sample Rate to 8 MHZ and reads the data from the LimeSDR

Ahh okay and I promise one last question: How do I pull the device into USB mode and what if I wanted to run this program on start up on the LimeSDR alone without needing any computer?

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [23 December 2020 15:34 UTC](https://discourse.myriadrf.org/t/limesuite-api-code/6800/8 "2020-12-23T15:34:28Z")

</div>

You cannot run it without a computer, but it runs nicely using Raspberry PI 4 and they cost less than 100 dollars. Some versions of the PI system come with LImeSDR support built in so you just need to plug it into one of the USB3 ports to use it.
