10-10-2006 11:23 AM
When connecting a string constant that include the character
"\" to a subVI the backslash character is multiplied.
How can I avoid this?
10-10-2006 11:53 AM
The way to avoid the display problem is to select Normal Display for the string constant. Is this causing any problem other than a visual one? If you want to use the '\' character, it's all the same whether you have Normal, Code, or Hex display. With '\' Code Display turned on, the \\ just means to send the literal '\' character and not some control code.
10-10-2006 12:27 PM
10-10-2006 01:28 PM - edited 10-10-2006 01:28 PM
It sounds like you first had set the control for normal display, entered the \r\n, and then turned on '\' code display. Just delete everything you have in the control and with '\' Code Display on, enter the command plus \r\n. You could also have the command in a string control/constant with normal display turned on and use the concantanate string function with the carriage return and line feed constants on the string palette wired as inputs 2 and 3.
p.s. Next time, post similar messages in either the LabVIEW or serial forum. Posting this type of question in the Digital I/O forum just confuses things.![]()
Message Edited by Dennis Knutson on 10-10-2006 12:29 PM