From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial works in Hyperterminal and MAX but not Labview

I am trying to serially communicate with a AR Kalmus Power Amplifier.
I have successfully done writes and reads using both Hypterminal and MAX, but when using LabVIEW nothing has worked yet.
The parameters are 9600 baud, 8 data bits, 1 stop bit, no parity, Flow Control is XON/XOFF.
In MAX I found out I need CR termination character (\r)

In LabVIEW I configured the VISA port to use a termination character, and that it's 0xD.
Still when I do one of the commands that worked in both Hyperterminal and MAX, it does nothing in LabVIEW.

Any ideas?
Thanks,
Daniel
dkleffner@sbcglobal.net
0 Kudos
Message 1 of 3
(3,157 Views)
A termination character in VISA is a character that stops (terminates) a reading (don't know about writing) process. If you take \0D, you'll get a single line from the device.
VISA DOES NOT ADD THIS CHARCTER WHEN WRITING!
So you have to append it to your string yaourself.

HTH and
Greetings from Germany!
--
Uwe Frenz
0 Kudos
Message 2 of 3
(3,153 Views)
Hi Daniel:

Right click on the string you are sending into the VISA write and select '\'Codes Display. The just add \r to the end of you command.

Have a great day!

Emilie S.
Applications Engineer
National Instruments
Message 3 of 3
(3,128 Views)