High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find gain and offset of USB 5132, running in C#?

Solved!
Go to solution

Hello,

I was just reading the post https://forums.ni.com/t5/High-Speed-Digitizers/How-are-offset-and-gain-in-the-niScope-fetch-function... about the gain and offset of the digitizer, for use in the data reconstruction.  Like the other poster, I would also like to find the gain and offset of our USB 5132, but am running in C#.  Would someone be able to point me to the location of the gain and offset of our device, in the C# drivers?  (If I try to estimate them myself from the digitizer settings my reconstruction is OK but not perfect.)  Thanks very much.

Regards,

Penny

 

0 Kudos
Message 1 of 2
(5,741 Views)
Solution
Accepted by topic author Penny

All set.

 

                    ScopeWaveformInfo[] info = e.WaveformInfo;
                    MessageBox.Show("gain[0] is " + info[0].Gain.ToString());
                    MessageBox.Show("offset[0] is " + info[0].Offset.ToString());

Thanks,

Penny

 

0 Kudos
Message 2 of 2
(5,737 Views)