LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs232 message terminator WARNING

Good morning to all the forum.
I remotely command a GW Instek Programmable Power Supply PSH-6006A via LabVIEW 2012 and USB to SERIAL PORT controller. 
The power supply works properly according to the remote commands I give it via the front panel, except for this warning message:
 
"RS232 message terminators: AS there is no signal of end message on RS232 bus, therefore, use LF as 
message terminator. When a series of commands are sent to the instrument, it must add a LF to be a
judgment for message terminator. As for query command, the return message of the instrument is also
added a LF for PC to judge message terminator."

 

I made a research about it but nothing found, also have no idea about what a "LF as message terminator" is and nothing found in LabVIEW help.

Does someone know what this warning is?

Thanks in advance.

 

  Leo

0 Kudos
Message 1 of 6
(4,146 Views)

LF is the line feed character.  It is also known as a "new line" character.  Decimal 10, hex 0A.  If you have a string constant and it is set for \codes display, it will show up as \n in the string constant.

 

Just make sure the command you send as that character at the end.

 

When configuring the serial port with the VISA configure function, make sure the termination character is enabled, and set for that character.  Which it is by default if you don't wire anything into those connectors of the function.

Message 2 of 6
(4,138 Views)

Hi Leo,

 

check the VISA-SerialPortInit function. It has an input for "term char" with default value 0x0A (LF). Read the help or guess what it is good for...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 6
(4,135 Views)

Very quick response, thank you! In the end I use an instrument Getting Started.vi that uses various subVI's to Initialize the driver session, configure and read a measurement from the instrument , and Close the driver session. It works properly without any error or warning message. I studied al the subVI's inside but I didn't find any termination char..... but it works!

Thank you, Kudos!

0 Kudos
Message 4 of 6
(4,122 Views)

The terminator is pretty clear in the GWPS320x Write VI. Assuming you are using the driver written by Instek.

Message 5 of 6
(4,092 Views)

Oh, you are right! Yes, I'm using Instek's drivers, but I didn't know that there were sub-sub-subVI's! 

"I learned something new also today, it's a pity to die" (cit. my friend's chief).

 

Thank you

 

  Leo

0 Kudos
Message 6 of 6
(4,065 Views)