Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Troubling communicating with hp34401A using RS-232

OK, slow down there, take a deep breath and don't panic... It is quite unlikely your serial port is not functioning, it's possible and I have seen it maybe a couple of times in 20 years but that is most likely not the problem.
 
The first thing you need to do is get the instrument manual. You can download it in PDF form from Agilent's web site http://www.agilent.com/, you are looking for manual part number 34401-90004.
 
Chapter 4 in that manual explains the commands. There is also a section that explains connecting to it via RS-232.
 
Hyperterminal is just a simple terminal program that ships with Windows. It should be installed on your machine and you can find it under Start->Programs->Accessories->Communications if it is in the default location. This program will allow you to manually send commands to the DMM via an RS-232 port.
 
OK, after checking the manual and looking at the DMM in my test rack, I take back my previous statement (in my reply above). You DO need a null-modem cable (I have no idea why Agilent did that, but that is neither here nor there).
 
A null-modem cable is not a modem, it is a cable that swaps the receive and transmit pins so two computers can talk directly to each other. The standard PC serial port output these days is a male DB9 so if you have a cable that has two female DB9 connectors, it is most likely a null-modem cable. You can verify this by checking pins 2 and 3 at each end of the cable for continuity. If pin 2 at one connector connects to pin 3 of the other connector, it is a null-modem. If pin 2 connects to pin 2, it is a standard serial cable and not what you need.
 
Also, make sure you have the serial cable connected to the correct connector, if you have a standard serial cable with a male connector at the DMM end, you are not connected to the RS232 port, that is the external trigger port.
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
Message 11 of 46
(5,700 Views)
Hi!

Based on the "The specified attribute is not supported" error, I think there might be a good chance that your serial port may not support DTR/DSR, especially if you're running a Linux or Mac.  It could also be an incorrect cable, or something else altogether.  If you could give us more information on what kind of system and what version of LabVIEW you're running we could probably give you some better advice.
Message 12 of 46
(5,671 Views)

Hello,

i have downloaded drivers of Hameg powersupply 4040,which I have to design in Labview.

I am Using RS232 cable and made all setting as per manual which is reqired for cable.

but when I am tring to run my project i get then time out error and then for checking this error I tried to run my Initialize.vi but in that during visa read i got error.

I getting really very stuck here.

Here I am sending you some snaps of my labview that might be help you to understand my query and i am very new user of labview.

 

will you please help me out.

Thanks in advance.

akki

0 Kudos
Message 13 of 46
(4,664 Views)

@akki123 wrote:

Hello,

i have downloaded drivers of Hameg powersupply 4040,which I have to design in Labview.

I am Using RS232 cable and made all setting as per manual which is reqired for cable.

but when I am tring to run my project i get then time out error and then for checking this error I tried to run my Initialize.vi but in that during visa read i got error.

I getting really very stuck here.

Here I am sending you some snaps of my labview that might be help you to understand my query and i am very new user of labview.

 

will you please help me out.

Thanks in advance.

akki


Stop spamming the boards with your duplicate questions!

 

0 Kudos
Message 14 of 46
(4,655 Views)

hello,

 I go thruogh this link and made changes according to this  http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0.so i got success to remove  error from visa read from instrument query id,will you please let me know if i made changes like this then it is right or wrong?

and one more thing that still i am getting error from instrument id even i try to make that disable then i am getting same error which i got before because of visa read.

here i m attach the snap of this will you please help me to solve this problem .

 

Thanks and regards,

akki.

0 Kudos
Message 15 of 46
(4,652 Views)

I have no idea what error you are getting now because you do not say. And I will not respond any more to you until you learn proper etiquette. You've hijacked a thread and spammed the board.

0 Kudos
Message 16 of 46
(4,634 Views)

ohh I am really very sorry if I hurt you becasue I am fresh student for labview and really i dont have any idea regarding to this tool and one of my frd told me to post my query in this forum so .even I dont know how to post this becasue its realy very complecated for me to find all this.But still I am sorry for disturbing you .Now i ll take care not harassing  you any more.And question of hijacking that I got same message which I posted from your id so i though it may be spam so I did it and i dont have any idea about this.

Have a nice day.

akki

0 Kudos
Message 17 of 46
(4,626 Views)

hi akki,

          i recently face this error -1073807339. i dont know about your new error You just try the following points which may be help you.

                  1.You have to verify whether REMOTE function is enable or disable in your power supply display.if it is not showing when the power supply is not connected with your system.

                  2.If you are using two write commands sequentially just put some time delay in between two write commands

                  3.first enable the bulb icon in program and run at that time if your not getting this error means your program need timedelay.

just try..............

 

You are explained your problem very clearly

 

baskar                

0 Kudos
Message 18 of 46
(4,611 Views)

Thank you very much Basker.

0 Kudos
Message 19 of 46
(4,577 Views)

Is your problem solved ?

0 Kudos
Message 20 of 46
(4,566 Views)