06-27-2012 04:41 PM
Hi
I am using RS-232 to talk to my E3649A power supply, I have downloaded the drivers and can set voltages and turn on and off the power, but I cannot read voltage or current, does anyone know why the serial port is timing out?
Matt
06-28-2012 06:06 AM
Hi,
Have you tried using NI-SPY to capture the calls?
Curt
06-28-2012 10:58 AM
The Initialize function works with asking for the id but the Measure function returns a timeout error?
06-29-2012 06:26 AM
When it is set up as GPIB the Measure VI is fine. It seems to be only a problem with RS232.
06-29-2012 08:01 AM
06-29-2012 08:12 AM
Hi,
Try using the Visa Test Panel for 'ASRL#:INSTR' in NI-MAX
send these commands
INST:SEL OUT 1\n
and
MEAS:VOLT?\n
and see what happens
Curt
06-29-2012 08:15 AM
correction
command 1
INST:SEL OUT 1\n
Curt
06-29-2012 01:21 PM
Yes, the initialize functions returns the information without timing out, however, all of the other queries time out. If I look at VISA attributes in MAX I see...Is Port Connected... VI_ATTR_ASRL_CONNECTED...ERROR- Visa (0xBFFF001D) The specified resource is not defined or supported by the reference resource.
06-29-2012 01:57 PM
That attribute is only supported by serial adapters from NI so ignore that.
I don't understand how one query can work but not another. Have you tried the VISA test panel as previously suggested or a terminal emulation program such as hyperterminal, putty, etc? The suggestion to run NI-Spy/IO Trace is also a good idea.
06-29-2012 02:09 PM
I have not tried another terminal emulator. This weekend I will try hyperterminal. I will also try without a USB to Serial adaptor.
I am not that familiar with NI Spy, but will also see what it can tell me about this failure.