Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 communication issue

I have been using a Labview vi (see below attached) to control Agilent E3645A DC power supply which is connected to my computer with a RS-232 cable (Agilent part# 34398A). However, whenever I run this vi, there come an error message "Error -1073807339 occurred at VISA Read in Agilent E364X Series.lvlib:Initialize.vi->Agilent E364X Series Output Single Channel DC Volts.vi" . It seems a communication error. Is there anyone can look into this problem and give me some hints? Thanks.

0 Kudos
Message 1 of 9
(5,325 Views)
0 Kudos
Message 2 of 9
(5,323 Views)
Either the com settings do not match the instrument or you are using the wrong type of serial cable. According to the instructions on the block diagram of the initialize function, you configure the com port of the pc in MAX (Measurement & Automation Explorer). This is not how I prefer to do things but you can easily modify the initialize function to configure the com port there. I believe that you need a null-modem cable as well but verify that in the manual. I would recomend that you test the com settings and cable in a program such as HYperterminal first. You should be able to type the command *IDN? and get a response.
0 Kudos
Message 3 of 9
(5,311 Views)
if any one find the solution to the problem message me .i am in great need for it for my project.help me by providing vi
0 Kudos
Message 4 of 9
(4,923 Views)
The solution has been given. What have you tried?
0 Kudos
Message 5 of 9
(4,919 Views)
sir



i am working to control Agilent E3644A power supply.i am here posting my vi prepared for that purpose.when i was running the vi it is showing me an error 1073807339.i have downloaded this example from ni.com...can u suggest me an solution.



if possible help me by providing a suitable vi.



http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=014FBD5290E626D9E0440003BA7CCD...
0 Kudos
Message 6 of 9
(4,900 Views)
I don't know why you keep posting the same question. Have you actually read the earlier posts and tried any of the suggestions? In all probablility, you don't need to modify any code. You probably have a hardware issue so first try the suggestions and post back with the results if you still get a timeout.
0 Kudos
Message 7 of 9
(4,898 Views)

sir

 

thanks for your kind response

 

the issue is ,the instrument is detected  in MAX an i did self test for the equipment .it was succesful,.but when i run the vi i was getting the error as said above

 

 thank u

0 Kudos
Message 8 of 9
(4,893 Views)
That does not make any sense. If you are using RS-232 like the thread says, you cannot detect the instrument in MAX. Exactly what did you do to run a self-test? What type of connection to the instrument do you actually have?
0 Kudos
Message 9 of 9
(4,889 Views)