09-02-2010 05:39 PM
I have a problem of using nidmm to acquire a voltage waveform using VS2008. The dmm is set up as below.
double[] wf = new double[1000];
my_dmm.ConfigureWaveformAcquisition(
my_dmm.ReadWaveform(-1, 1000, wf, out no_of_samples);
nidmmConstants.WaveformVoltage, 10.0, 2000, 1000);When I run to the ReadWaveform function, the program stop with the Exception message. "Run test Error - Index was outside the bounds of the array".
I tried to change the array size but have no effect.
I am using the latest nidmm_wrapper_30.
Any help will be appreciated.
Thank you
09-04-2010 03:04 PM
one of the dmm examples shows how to read a waveform, it may shed some light on your app.
-Ciao 😉