I have been trying to use PXI4070 DMM waveform acquisition configuration ( niDMM_ConfigureWaveformAcquisition) and the Read Waveform (niDMM_ReadWaveform) in VB6 to get an array of digitized points. However the returned array always has some garbage for the first element in the array and all zeros for the rest. The code looks right to me and I tried few different things however still I do not get the digitized waveform. I also made sure my signal generator works and I have the signal. Below is how I define my waveform configuration and read wave form:
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