- AuthorSearch Results
Found in Topics
- This topic was modified 2 years, 6 months ago by
Jacks.
Jacks posted on October 12, 2022 at 2:02 am View this postTopic: SM200C get NMEA messages
in forum SM Series DiscussionsGood afternoon!
There is SM200C, we need to receive NMEA messages. Now the SMGetGPSInfo function returns the coordinates and height, respectively, the gps works. But there is no data in the NMEA messages, i.e. the array is not filled, although the size is clearly changing.
What could be the problem?
We think that problems can be of the following type:
1. NMEA messages are disabled by default. And then they need to be turned on. How?
2. Some problems with api. We use C#, and everything is done according to the examples from C++, and before that there were no problems.Found in Replies
Andrew posted on October 4, 2022 at 9:00 am View this postIn reply to: BB60C API
AndrewModeratorHi MMohseni,
If you download the SDK (link below) and look in the examples folder for the BB60C, you will see a folder for C# that includes a wrapper API and an example of how to use it. This example can be easily modified and extended to suit your purposes.
https://signalhound.com/software/signal-hound-software-development-kit-sdk/
Andrew
Found in Topics
MMohseni posted on October 4, 2022 at 7:03 am View this postTopic: BB60C API
in forum BB Series Discussionshi dears,
I want to know how to retrieve spectrum info (Frequency and amplitude (Specially amplitude)), for example in C# program or another.Found in Topics
- This topic was modified 2 years, 8 months ago by
Jacks.
Jacks posted on August 31, 2022 at 7:12 am View this postTopic: Channel power in spike with SM200C.
in forum SM Series DiscussionsGood afternoon, now I’m working with SM200C.
In the spike of the latest version, when measuring the channel power for a stable signal and changing the type of window, the channel power also changes, it seems to me wrong.
It looks like this change is 10 * Math.Log10(windowBW).
Is this a bug in the spike? The same is observed when measuring through the API. Should I subtract the constant 10 * Math.Log10(windowBW) from all levels on the trace, as I do now?Found in Replies
Andrew posted on August 17, 2022 at 9:33 am View this postIn reply to: Cannot capture all the event through spike software
AndrewModerator1) When using the I/Q recorder the scale factor is not recoverable, so you will have to use the data as full scale if saving as 16-bit ints. If using the API you can store the scaling factor separately and use it to convert to dBm if needed. The reference level being used as the scale factor does not apply with the I/Q recording utility.
2) Check out the docs for more information on scaling, we use this approach for both our BB and SM line of receivers. I/Q values have a similar scale as a voltage, but need additional conversion if you want to use them as a voltage.
https://signalhound.com/sigdownloads/SDK/online_docs/bb_api/index.html#IQDataTypesAndrew
Found in Replies
JGeng posted on August 17, 2022 at 6:48 am View this postIn reply to: Cannot capture all the event through spike software
JGengParticipantHi Andrew,
Thanks for the reply. That’s more clear for me. So if I use the IQ recorder, it will set to 16 bits for IQ data for default, and I have to do the transform and correction(based on the documentation) :
1. The correction value can only be acquired through API or there’s a table for finding it? I’ve tested that it seems only relate to the the reference level set, is that correct?
2. I’m always confused about what is the unit for acquired raw data(there’s different setting in api) for either IQ recorder or bbGetIQ api? Is is the voltage or power? mV or dbm or else?
Thanks,
JingFound in Replies
- This reply was modified 2 years, 8 months ago by
Andrew.
Andrew posted on August 15, 2022 at 9:07 am View this postIn reply to: Cannot capture all the event through spike software
AndrewModerator1) My guess is that 0 duration just means the event lasted for a single sweep, and 0 bandwidth means that only a single point in the sweep exceeded your threshold. Does that line up with what you are seeing?
2) Using the recorder in Spike means that you would only have to write code that parses those files and looks for events. Using the API gives you more flexibility to write files in a format that’s better for you, and also you can automate more of the recording process vs manually saving the files in Spike. It’s the same underlying data/samples in both approaches.
Our data rate is 160MB/s. Using the API you can choose whether to receive 16 or 32-bit complex values. The 16-bit are shorts, and 32-bit are floats.
Retrieving I/Q data via the API is by default continuous. If you set the purge flag to false, the I/Q data will be continuous. The API stores about 1/2 second worth of I/Q data internally, so you must not let this internal buffer “wrap/overflow/etc”, otherwise you will have a gap in samples. You must continually poll the API for the duration of time/samples you need. You can detect gaps by monitoring the sample loss parameter and the status flag returned from the bbGetIQ function. You can request arbitrarily large buffers sizes from the API if desired. If you plan on streaming for long periods of time, I suggest requesting buffer sizes around ~1/60th of a second. This is still a small enough buffer to quickly allocate and does not call into the API (which has a small amount of overhead) too many times per second.
Andrew
Found in Replies
JGeng posted on August 15, 2022 at 8:21 am View this postIn reply to: Cannot capture all the event through spike software
JGengParticipantHello Andrew,
Thanks for all the reply. I’ve tested those solutions you suggested, and have some following questions :
1. In interference hunting mode, I can collect event with 0 duration and 0 bandwidth. I’m guessing the 0 duration is due to rounding or truncating, but what does 0 bandwidth means and what is the precision for duration and bandwidth?
2. I would like to capture all small duration event so it seems capturing IQ and do post processing is what I should do. What’s the difference between using IQ recorder and write my own code with API?
For IQ recorder : I still need to verify it’s correctness since a 40M/s sample rate has rate 150.94 MB/s so that means there’s still a loss(theoretically should be 160MB/s)?
And also, the api shows that the IQ data is stored in 32 float but the IQ recorder is recording 16 bits(and normally the recording device in the past is storing in 16 bits so I’m a little confused)For API : I’ve tested to acquire by using bbGetIQ() function, what is the mechanism for BB60C to update the buffer? I call the function several times and it actually get all the data from the buffer out. How do I get the next data without making a gap? Do you suggest anyone that can answer the question for bb_API?
Many thanks.
JingFound in Replies
Andrew posted on July 20, 2022 at 10:44 am View this postIn reply to: Cannot capture all the event through spike software
AndrewModeratorHi Jing,
The interference hunting mode is not a real-time measurement, it operates using standard sweeps. This means for short duration events like the ones you are measuring, you can miss them. Increasing the RBW can help improve sweep time.
If all of your events are within a 27MHz span, you can use our real-time measurement mode to be able to visualize all events in the frequency domain, and use our sweep recorder to capture these events. The data format for the sweep recording is different than the recorded data in interference hunting mode, but all events that have 2ms duration will be visible.
You can also record events in zero-span using the I/Q recorder in zero-span mode. You can set up a video trigger and capture a sequence of I/Q time domain files that should contain a significantly higher percentage of the events than you capture in interference hunting mode. Depending on how the pulses arrive, it may not capture 100% of them.
Another option is to use the API in I/Q streaming or real-time mode to capture data and programmatically store the events of interest.
Andrew
Found in Replies
Andrew posted on July 5, 2022 at 9:00 am View this postIn reply to: Multi-channel IQ Recording
AndrewModeratorTuong,
The I/Q recorder in Spike is not open source. That being said, we could look into extracting some useful code from the recorder as an example for customers to use. I will consider what this would look like.
We have a much older open source recording utility that was written for the BB60A/C many years ago. It illustrates multi-threaded recording of full IF/IQ data. It will likely not compile against our current APIs, but it might be helpful for you.
https://signalhound.com/sigdownloads/BB60C/BB60_Demos.zip
Andrew
Found in Topics
AKumar posted on June 10, 2022 at 9:07 pm View this postTopic: BB60C-API for ARM
in forum BB Series DiscussionsWant to call the APIs using an ARM-based device.
Hence like to compile the libraries to execute in an environment based on AArch64.
Request you to share the supporting libraries if Feasible.Found in Replies
Andrew posted on June 6, 2022 at 11:38 am View this postIn reply to: what is needed to switch modes SM200C?
AndrewModeratorWhen you stop and exit the software are you calling smCloseDevice or smAbort? If not it’s possible the device is still active. If you stop and exist the LED should have gone back to solid green. Flashing indicates data transfer.
I’m not aware of any outstanding issues that prevent the instrument from going between different modes like this. The API can only operate in one measurement mode at a time.
If you had two instances of your software running, this could certainly create this type of issue (let’s say your previous instance of your software didn’t fully close and is still running in the back ground) Our API does not stop you from interfacing the device from two different processes (which is not recommended or supported).
Are you monitoring the status’s returned from the API. When you mention getting garbage data, is it possible you are simply not getting any data and the API is throwing an error? (maybe you are just looking at uninitialized memory?)
If you continue to have issues after further investigations you can contact us directly at support@signalhound.com. You could also create a small sample application that illustrates the problem and we can try to reproduce it on our end.
Found in Topics
JHoy posted on April 13, 2022 at 3:17 pm View this postUsing the API I have found the temperature reading does not update when calling the sa_query_temperature( ) function after the device has been initialized using the sa_initiate( ) function.
The voltage reading using the sa_query_diagnostics( ) function returns the following error after the device has been initialized using the sa_initiate( ) function.
“Error -9: {‘error_string’: b’Cannot perform requested operation while the device is active’} in sa_query_diagnostics()”
Is there a way to fix this without closing the device? I need to monitor the temp to know when to apply a device calibration while the device is saving data.
Thank you.
Found in Replies
Andrew posted on April 12, 2022 at 9:21 am View this postIn reply to: Channel Power measurement of 20MHz wifi
AndrewModeratorEd,
Unfortunately, this specific measurement would not be possible remotely via programming. While our software does accept SCPI commands (that you could send from Labview or Python) for most functionality, the measurement as configured in the picture above (zero-span channel power) is one of the few that cannot be fully automated.
There are some alternatives,
If you knew exactly what WLAN protocol you were measuring and it was not MIMO, you could use our WLAN measurements to fully capture, demodulate, and report the channel power. All of this is available via SCPI programming. You can determine if your signal would be able to be measured under this measurement mode by browsing our WLAN feature document,
https://signalhound.com/content/tech-briefs/802-11b-a-n-ac-ax-wlan-modulation-analysis-in-spike/.If you were comfortable processing I/Q data, you could use the direct device API to acquire I/Q data, and perform the triggering and channel power measurement yourself. The device APIs are provided in our SDK,
https://signalhound.com/software/signal-hound-software-development-kit-sdk/
Our API is primarily C/C++, but we have several examples on how to call our API from Python or Labview.
https://signalhound.com/software/signal-hound-instrument-drivers-for-labview/If you would like to discuss your specific measurement requirements in more depth, consider reaching out to me directly at aj@signalhound.com.
Andrew
Found in Replies
Andrew posted on April 6, 2022 at 10:38 am View this postIn reply to: Meaning of smUncalData error
AndrewModeratorI have been unsuccessful reproducing the issue with the API. Can you potentially put together a short script that reproduces the problem on your end?
I’m also now considering that you are in fact seeing networked data loss, and that could be tied to your specific hardware configuration and/or software.
While I do see the issue in Spike, I only see it ~1 out of 20 or so reconfigures, and the sweep is not corrupted, which led me to believe it was an erroneous warning.
You also have my email if you wish to communicate via email. It is easier to share pictures and code via email moving forward.
Andrew
Found in Replies
- This reply was modified 3 years ago by
Andrew.
Andrew posted on April 6, 2022 at 9:17 am View this postIn reply to: Meaning of smUncalData error
AndrewModeratorThe API picks the maximum sweep time that ensures all configuration is met. That includes RBW/VBW/sweeptime. Setting a small sweep time ensures the minimum sweep time is chosen based on RBW/VBW.
I would ignore the uncal warning flag for now if it’s being thrown on the first sweep. I suspect it’s being set erroneously. I was able to reproduce this using your settings. The uncal data flag usually indicates network data loss, I’m going to need to investigate further to determine why it’s returning this warning for this configuration.
Andrew
Found in Replies
Andrew posted on April 6, 2022 at 9:08 am View this postIn reply to: HDSDR Compatibility
AndrewModeratorNick,
It’s possible the preamp is not being configured in HDSDR. We don’t actively maintain the HDSDR interface, but we do provide the source code (It should be in the HDSDR zip folder). You could open up the project and verify that indeed we are not setting the preamp through the API, and recompile it to add this functionality.
Andrew
Found in Topics
jmatusiak posted on April 4, 2022 at 12:26 pm View this postTopic: Meaning of smUncalData error
in forum SM Series DiscussionsAnother random batch of values I used was able to get the SM200C to error out with smUncalData.
I am in FREQSWEEP mode with:
* Auto speed
* 900kHz – 6GHz start/stop
* 30kHz RBW
* 100ms period
* Nuttall windowMy app seems to be setting up the device with these settings fine, but when I try to get an FFT sweep, this is the value I get in return after the very first smFinishSweep call. Any ideas? It seems like I can “ignore” it, but should I be worried?
Also, I am still a little confused on the sweepTime option for the smSetSweepCoupling API call. I am setting the start/stop and RBW, is it safe to just pick a super small sweepTime since the system will just pick the fastest time it can based on the RBW/VBW?
Found in Replies
jmatusiak posted on April 4, 2022 at 4:53 am View this postIn reply to: Meaning of smAllocationErr
jmatusiakParticipantI see the confusion. I am working in Linux, it doesn’t look like you offer both 32-bit AND 64-bit. I think you only offer a 64-bit version, right?
libsm_api.so.2.1.17: ELF 64-bit LSB shared objectFound in Replies
Andrew posted on March 31, 2022 at 12:15 pm View this postIn reply to: Meaning of smAllocationErr
- This topic was modified 2 years, 6 months ago by
- AuthorSearch Results