Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I have

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
0 Kudos
Message 1 of 5
(3,747 Views)
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?When you installed IVI, support as well as examples should have been included for VB6. The examples are located in this directory:

C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\IVI\CWIviDmm

This will be the best place to start. Let me know if you cannot find these examples.

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,747 Views)
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?Jack,
Thank you for answering my question.
Checking in my C:\Program Files\National Instruments\Measurement Studio, I have found only the Help folder. There's no VB\Samples\IVI folder.
I have downloaded and installed the Basic IVI Class Driver 2.1 and IVI Engine 1.83. Do I need to install any other files?
Thanks again.
0 Kudos
Message 3 of 5
(3,747 Views)
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?Jack,
Thank you for answering my question.
Checking in my C:\Program Files\National Instruments\Measurement Studio, I have found only the Help folder. There's no VB\Samples\IVI folder.
I have downloaded and installed the Basic IVI Class Driver 2.1, IVI Engine 1.83 and NI-Dmm 2.0.1. Do I need to install any other files?
Thanks again
0 Kudos
Message 4 of 5
(3,747 Views)
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?Do you remember when installed the Basic IVI Class Driver 2.1 if you selected to install support for VB6?

It sounds like you have everything installed properly if the DMM works otherwise. You can either try reinstalling you IVI class drivers or I have attached only the DMM class driver examples in VB.

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,747 Views)