a PXI-1025 with a 4060 DMM. I'm learning to use the IVIDmm activex control to control the DMM. I wrote my application in VB6. I cannot get it to work. I could not find any VB example or documention on the NI website. Can anyone give me some lead on this?The following is the VB text:
Option Explicit
Dim ISDmm1 As ViSession
Private Sub cmdRead_Click()
Dim ReadDC As Double
IviDmm.Measurement.IviDmm_Initiate ISDmm1
IviDmm.Measurement.IviDmm_Read ISDmm1, 1, ReadDC
Text1.Text = ReadDC
End Sub
Private Sub Form_Load()
IviDmm.Initialize.IviDmm_init "PCDmm", _
VI_TRUE, VI_TRUE, ISDmm1
IviDmm.Configuration.IviDmm_ConfigureMeasurement ISDmm1, IVIDMM_VAL_DC_VOLTS, IVIDMM_VAL_AUTO_RANGE_ON, 0.
001
End Sub