# LimeSDR parameter setting order

**URL:** <https://discourse.myriadrf.org/t/limesdr-parameter-setting-order/5762>\
**Category:** LimeSDR\
**Created:** [14 February 2020 10:52 UTC](https://discourse.myriadrf.org/t/limesdr-parameter-setting-order/5762 "2020-02-14T10:52:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveh](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@daveh](https://discourse.myriadrf.org/u/daveh)\
**Post date:** [14 February 2020 10:52 UTC](https://discourse.myriadrf.org/t/limesdr-parameter-setting-order/5762/1 "2020-02-14T10:52:57Z")

</div>

Hello,

I am writing some code in C that reads samples at various center frequencies. I was just wondering, is the order of SDR parameter setting important, please? I am using the SoapySDR API (as shown in LimeSDR Made Simple Part 8)

For each step in the loop, I am setting parameters in the following order:

sample rate  
antenna  
center frequency  
bandwidth  
gain

Is this correct please? Many thanks!

---

<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:** [15 February 2020 01:21 UTC](https://discourse.myriadrf.org/t/limesdr-parameter-setting-order/5762/2 "2020-02-15T01:21:17Z")

</div>

Yes, that should work, but there are some of the C functions that don’t work - (I don’t remember which ones, but I had to switch to the C++ routines to get things running) - so you may want to switch to using the C++ interface. There are 3 SoapySDR versions in common usage - versions 0.6, 0.7 and 0.8 and they are all slightly different. This will just get you the raw data - liquidsdr has the routines to process the raw data into AM, FM, USB, LSB etc…

---

<div class="post-metadata">

**Author:** ![daveh](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@daveh](https://discourse.myriadrf.org/u/daveh)\
**Post date:** [25 February 2020 17:28 UTC](https://discourse.myriadrf.org/t/limesdr-parameter-setting-order/5762/3 "2020-02-25T17:28:47Z")

</div>

Many thanks for your reply, and for the useful information provided. Thanks again!
