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.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to specify ASCII 0D and 0A?

HI,
 
I'm using a TS step to send some string over RS232 com and I expect some string.  The problem is that the expected string includes CR and LF  (ASCII 0D and 0A).
 
I used another program (Procomm ) in order to monitor exactly what is included in the received string.  
The received string is:  (in decimal)  59, 13, 10, 60   (which is in ASCII  ";  CR LF <".
How can I detect  this string?
 
I tried ":\r\n<"  but it didn't work.....any suggesting?
 
Thanks
Rafi
    
0 Kudos
Message 1 of 2
(4,296 Views)
Hi Rafi,

Try creating a string out of the decimal values and comparing that string to the string that TestStand is receiving.  For example, create a Locals.x string by doing this in an Expression step: Locals.x = Chr(59) + Chr(13) + Chr(10) + Chr(60).  Try that out and let me know if you have any questions.
0 Kudos
Message 2 of 2
(4,261 Views)