Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for example to record 2 channels from USB-5132 ?

Hi,

 

I just unpacked our new USB-5132 digitizer and it is great.  I have installed NI-SCOPE 3.8.1 and NI-SCOPE .NET Class Library 1.1.1 .  I have been looking through the C# examples to find one that can measure both channels 0 and 1 simultaneously, and ideally write them to disk.  So far all I have been able to find are examples that specify and measure either channel 0 or channel 1, but not both.

 

Is there such an example, or should I try to start splicing the existing NI examples together?  Thanks for any input.

 

Regards,

Penny

 

0 Kudos
Message 1 of 4
(4,015 Views)

Hello Penny,

 

First you should post this in the High-Speed Digitizer Forums, because this is actually a question related to the 5132 digitizer. You are likely to get faster response there.

 

You have mentioned that you would like to simultaneously acquire samples from both channels. Are these channels sampling at the same rate, # of samples? If so, in the input where you have channel "0" all you would need to do is enter "0:1" without the quotes. The drivers will automatically fetch data from both channels simultaneously.

 

Best Regards,

Jignesh P

Applications Engineer

Best Regards,
Jignesh Patel
Principal RF Software Engineer
0 Kudos
Message 2 of 4
(3,995 Views)

Thank you Jignesh.  I will take a look at that, and yes the sample rate and # of samples are the same for both channels.  Assuming that I can get our data into a file, is there some documentation about the format of the binary data?  I need to unscramble it and read it into Root/C++ as that is how we have to do our signal processing right now.

 

Thanks again,

Penny

 

 

0 Kudos
Message 3 of 4
(3,993 Views)

Hi again,

I did try to input "0:1" without the quotes for the Channel Name in a couple of the examples, such as Scope: Stream To Disk .  I received an error that states "The format of the string is not supported."  Is there some other syntax I should try?

Thanks,

Penny

 

0 Kudos
Message 4 of 4
(3,991 Views)