Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

E3649a

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

0 Kudos
Message 1 of 12
(4,651 Views)

Hi,

 

Have you tried using NI-SPY to capture the calls?

 

Curt

0 Kudos
Message 2 of 12
(4,643 Views)

The Initialize function works with asking for the id but the Measure function returns a timeout error?

0 Kudos
Message 3 of 12
(4,627 Views)

When it is set up as GPIB the Measure VI is fine. It seems to be only a problem with RS232.

0 Kudos
Message 4 of 12
(4,613 Views)
Please answer my question.
0 Kudos
Message 5 of 12
(4,606 Views)

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

 

 

0 Kudos
Message 6 of 12
(4,604 Views)

correction

 

command 1

 

INST:SEL OUT 1\n

 

 

Curt

0 Kudos
Message 7 of 12
(4,601 Views)

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.

 

0 Kudos
Message 8 of 12
(4,532 Views)

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.

0 Kudos
Message 9 of 12
(4,527 Views)

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.

 

0 Kudos
Message 10 of 12
(4,523 Views)