Hi:
I am using a two dimensional array VsigMeas(Num_Meas, Num_Vchan) to measure several voltage readings in consecutive channels in a CR1000X. The purpose is to average signals and to get the Standard Deviation, but I would like to do it within a Scan/Next Scan loop, not in a DataTable.
I use this code to record the values:
For i=1 To Num_Meas
VoltDiff (VsigMeas(i,1),Num_Vchan,mV5000,1,False,500,50,1.0,0)
Delay(0,100,mSec)
Next
So, this way, each row 'i' in VsigMeas has the measured V value in consecutive channels in each run, and columns have the readings of each channel.
Then I would like to use something like this to calculate average and StdDev:
For j=1 To Num_Vchan
AvgSpa (VsigAvg(j), Num_Meas, VsigMeas(-1,j)() )
StdDevSpa ( VsigStd(j), Num_Meas, VsigMeas(-1,j)() )
Next
But none of my tries with different codes has worked properly.
Any idea about how to get the average value of each channel (column) of that two dimensional array?
Thank you in advance,
Jose