Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

niDMM Configure Waveform Acquisition

I have been trying to use PXI-4070 DMM wave form configuration(niDMM_ConfigureWaveformAcquisition) and read wave form (niDMM_ReadWaveform) to get an array of digitized points. However so far I have not been successful. I tried few things and it still not working. It gives me an array which has a garbage value at the beginningand the rest of elements in the array are zeros. I also made sure that my signal generator is working properly and my signal is there. I am not sure if I am missing something however the code looks right to me. I have attached the code below. Any help is appreciated.
 
-Mike
 
Public Sub MeterConfigDCV4070(r As ViReal64, d As ViReal64)
    stat = niDMM_ConfigureWaveformAcquisition(sesn(eqMETER), NIDMM_VAL_WAVEFORM_VOLTAGE, 3, 1000, 1)
    MeterReadWaveform4070
End Sub
Public Sub MeterReadWaveform4070()
  Dim MeasArray() As ViReal64
  Dim numPointsRead As ViInt32
  ReDim MeasArray(1 To 1000)
 
  stat = niDMM_ReadWaveform(sesn(eqMETER), 10000, 1000, MeasArray(1), numPointsRead)
End Sub
0 Kudos
Message 1 of 1
(5,673 Views)