06-14-2018 03:20 AM
Hi guys, I am a new user of labview and I really need your help.
I connected my Agilent E3631A Power Supply to my PC using the serial rs232 port, but I have some problems:
1) Using the "NI drivers finders" I downloaded the correct driver, but when I "scan for instruments", it gives me "No connected instrument detected" (See Image1)
2) I clicked on the driver file and I opened the example file that should let to command power supply voltage, but it gave me an error "Time expired before operation completed" (See Image2)
3) I am almost sure that the rs232 port works. I tested it on MAX and I set power supply with the same values of "Baund rate, Parity ..."(See Image3).
Furthermore I tried to connect another instrument using RS232 port and labview recognise it.
Any suggestions?
Thank you a lot for your advises
06-14-2018 03:48 AM
1. I think that scan only works for GPIB. There are too many parameters to do it in a reasonable time using RS-232.
2. Make sure the instrument has its language set to SCPI. Older Agilent supplies will use multiple languages.
3. You just connected to the port itself, not the instrument. At the top is a Open Test Panel. Try talking to the instrument using that.
06-14-2018 04:26 AM
Hii thank you so much for your reply.
I tried to connect a mutimeter via RS232 and Labview scanned it.. so I don't know.
Yeah I set Agilent E3631A to RS 232 input/output configuration (See Images Attached)
I opened Visa Test Panel... I am not an expert of this, I attached you some images.. Could you tell me, watching images attached, if all is okay in communication with port?
Thank you
06-14-2018 02:57 PM
Can you set this up in the NI-Max window and run the "Communicate with Instrument". If it set to SCPI for language, try sending:
*IDN?\n
The instrument should respond with either:
Hewlett Packard...
or
Agilent...
If this is an older instrument and the previous command did not work, try sending:
ID?\n
and see if you get a response.
06-15-2018 03:10 AM
Hiii, I am not expert of Labview or Max, I tell you what I did.
I opened Max, I clicked on "Serial & Parallel" and clicked on the serial port COM1 (which should be my port RS232).
Then I clicked on "Open VISA TEST Panel" and in the submask "wWrite", I send the command "*IDN?\n", clicking on "Execute". (See Image attached)
Did I what you said me to do? Is it correct?
06-15-2018 06:03 AM
You also need to go to viRead and perform a read in order to see what the instrument responds with.
You are using a really old version of MAX. It is a lot simpler in a newer version. But I recommend using Putty to create a serial terminal and try your commands there.
06-15-2018 07:55 AM
Thank you so much
I go to iRead and clicked on "Execute". (See Image attached)
What is the meaning of that message? Is Labview not able to see the instrument?
If I'll be able to let Labview to see and command Agilent, I try to use Putty.
06-15-2018 09:25 AM
Please attach image.
06-15-2018 09:28 AM
Sorry I forgot it
06-15-2018 09:57 AM
Please Read and Verify that your instrument is connected and communicating as shown in Section 2 of the attached document. Your issues may be arising from the lack of handshaking protocols.