Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send string with line feed to Agilent 33250A via COM1

Agilent 33250A is a function generator. In HPERTERMINAL, when "Send line ends with line feeds" is enabled, simple strings make it work well, such as: "APPL:SQU", "OUTPUT ON", etc...

But I can't make it work with .vi file. COM setting is correct because 33250A shows "remote" icon immediatly after string sent. It will respon "error" to any mismatched setting (e.g. 9600 vs 115200). So, the connection is there but it just doesn't respond to commands.

I don't know why. The termination character is enabled in .vi

I apprecite your help to make the .vi to send string just like the HYPERTERMINAL with 'line feeds'.

Thank you very much.

Jian
Download All
0 Kudos
Message 1 of 2
(3,526 Views)
From what I can see it looks like you are NOT specifying what termination character you want to use when you call the serial port init.

When not otherwise specified, the port will be configured to use the default termination character which is a "carrige return" HEX 0A.

Try wiring a "Line Feed" constant to the init VI.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(3,526 Views)