Jump to content
  • 0

Forwarding raw waveform data to C/C++ code?


shabbirahmed

Question

Hi all, 

I am new to AD2 so this might be a trivial question. 

I have a project where i want to extract raw waveform data from AD2 and feed it to my program which is C/C++ and do my own processing on it. I need this to happen live when i am connected to the signal. As far as i have seen it is possible to save a captured signal as image or values statically but i need to to happen live. 

Is it possible to so this?

Thanks in advance, 

Shabbir

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Hi @shabbirahmed,

Unfortunately certain features are limited as stated in the reference manual. Streaming is one of those features. In the Waveforms reference manual under oscilloscope in section 2 control it states:  Stream: allows capturing large number of samples at lower rates. In this mode, the samples are streamed through the USB limiting the rate (depending on the system and other connected devices) at about 1M samples/sec. 

thank you,

Jon

 

Link to comment
Share on other sites

2 hours ago, jpeyron said:

Hi @shabbirahmed,

Unfortunately certain features are limited as stated in the reference manual. Streaming is one of those features. In the Waveforms reference manual under oscilloscope in section 2 control it states:  Stream: allows capturing large number of samples at lower rates. In this mode, the samples are streamed through the USB limiting the rate (depending on the system and other connected devices) at about 1M samples/sec. 

thank you,

Jon

 

@jpeyron

So if i were to say do some processing on a 10MHz signal with >20MHz triggered sampling and then spit out the results to the laptop will i be able to get up to the these sampling speeds? My priority is the sampling and processing of the signals, not so much the streaming, so even if i am able to process the signal when i see one on the line and then just retrieve the data to my laptop i am good.

 

Thanks,

Shabbir

Link to comment
Share on other sites

 Hi @shabbirahmed,

I believe the AD2 can handle the 10MHz signal with >20MHz triggered sampling with the Discovery BNC adapter. @attila is that accurate?  I would look here at the Analog Discovery 2 Specifications for specific specs for the AD2. After you have acquired the data you want you can export the file to do further processing. 

cheers,

Jon

Link to comment
Share on other sites

28 minutes ago, jpeyron said:

After you have acquired the data you want you can export the file to do further processing.

@jpeyron Is it possible to Stream this data back to the laptop instead of saving it to a file and then exporting it? That will save me a lot of time that i can use for processing.

 

Thanks,

Shabbir

Link to comment
Share on other sites

On 3/28/2017 at 3:04 PM, jpeyron said:

Hi @shabbirahmed,

You can do this using the Waveforms SDK. here is the Waveforms SDK reference manual. Hereherehere  and here are a few threads that deals with Waveforms SDK. Also here is the Waveforms 2015 reference manual.

cheers,

Jon

Hi,

 

I am trying to do the same thing with my digital discovery. Found the code in /usr/share/digilent/waveforms/sample/c  but trying g++ digitalout_binarycounter.cpp gives me an undefined reference to all your api's. Do I need to install anything other that waveforms2015 and adept2 ?

 

John Eaton

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...