LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent 34401A multimeter to PC with Labview driver via RS232

Hi Nirmal,

 

start LabVIEW, create a new VI, open the BD window, right-click -> Instrument IO-> Device drivers -> Agilent 34401.

 

It's already delivered with your LabVIEW installation! Each function has a context help and you can examine their block diagrams…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 21 of 58
(2,018 Views)

Hi , 

 

I am getting the same problem as Yulia, and as according to you I set breaking point and read it , when I give input , it is "comm1" , but the output it read as " " . How to resolve the error I m getting as  ( 

Error -1073807339 occurred at VISA Read in Agilent 34401.lvlib:Control Mode.vi->Agilent 34401.lvlib:Initialize.vi->Agilent 34401 Read Single Measurement.vi ) 

0 Kudos
Message 22 of 58
(1,760 Views)

Hi ashis,

 

two points:

- "comm1" seems wrong to me, usually the port is named "COM1"…

- you got a TimeOut error: is your device connected?, is the port setting correct?, did you send the correct command?, …

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 23 of 58
(1,752 Views)

Yes its COM1 , I am getting a time out error as well. I dont know how to check my device is connected or not ? 

 

0 Kudos
Message 24 of 58
(1,747 Views)

Hi ashish,

 

send a command to your device and read its answer: when the answer is "correct" the device is connected!

 

For identification I would choose a command to read something like device type or serial number…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 25 of 58
(1,745 Views)

Hi I think it is not able to detect in which visa resource it is .

I made a new logical name for 34401a driver , then it worked. When I was using com1 or com6 or LPT1, it was showing error. 

 

can anyone know how to  shift to COM1 connectivity for 34401A DMM. 

0 Kudos
Message 26 of 58
(1,737 Views)

Dear GERD ,

 

I still dont understand how you are giving command through lab view or so ?

 

can you elaborate with steps 

 

Regards

Ashish

0 Kudos
Message 27 of 58
(1,737 Views)

Hi Ashish,

 

usually I use VISA functions to communicate with external devices connected over serial ports…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 28 of 58
(1,730 Views)

I think the ivi driver was missing. By the bay when I am reading data from DMM , it reads 1 value in 1 second. how can I  increase the reading data capability by 10 data per sec from DMM and write into the file.  

0 Kudos
Message 29 of 58
(1,726 Views)

Hi ashish,

 

how can I  increase the reading data capability by 10 data per sec from DMM

Read the manual of your device (including the specs section) and then use the needed configuration settings…

 

and write into the file.

Use functions from the file functions palette to save data to files…

 

Did I mention the example VIs coming with your LabVIEW installation? There are also examples on file write/read…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 30 of 58
(1,724 Views)