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,298 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,263 Views)