Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

nidmm Run test Error - Index was outside the bounds of the array

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

0 Kudos
Message 1 of 2
(3,375 Views)

one of the dmm examples shows how to read a waveform, it may shed some light on your app.

 

-Ciao 😉

0 Kudos
Message 2 of 2
(3,344 Views)