Jump to content
  • 1
New WBT User

Setting Sample Rate Independent of Bandwidth

Question

On this topic: http://forum.qrctech.com/topic/22-sample-rate/, the effective sample rate was discussed as being a setting distinct from bandwidth beginning in release 2.4 (which is now available).

What are the steps to do this using the API? I have release 2.4.4.8 and it looks like the bandwidth is setting the sample rate.

(Note: This topic was split into new question and referenced back to the topic listed to facilitate ease of finding by a forum moderator - the user originally posted it as a follow up question to the original topic)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

In the WBT GUI, decoupling sample rate and bandwidth can be achieved by navigating to the Settings page under the System tab and selecting the option Override Sample Rate. With this option enabled, the sample rate and bandwidth can be set independently.

For the API, we will soon be posting a new version of the API that has specific functions handling the setting of the sample rate and bandwidth independently from within the WbtSystem class.

Share this post


Link to post
Share on other sites
  • 0

With that beta release of the API, bandwidth and sample rate can be set by using the getTunerSettings() and updateTunerSettings.

Bandwidth is changed by modifying the "_bandwidthHz" variable. Sample rate is changed by modifying the "_span" variable.

WbtApi::WbtSystem wbtSystem;
WbtCommon::Data::RadioSettings settings = wbtSystem.getTunerSettings();
settings._radioA._bandwidthHz = newBandwidth;
 //unit is Hz
settings._radioB._span = newSampleRate;  //unit is MHz (floating point)
wbtSystem.updateTunerSettings(settings,true);

 

Edited by Joey P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×