LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comparison in hexadecimal - help needed

hello,
i am basically using VISA read and write. There is infor sent to my computer using RS232. Only when i recieve that infor
I need to send out some data.  so I open up visa and start "VISA Read". the information coming in is:
 
"01,\n\r" or in hexadecimal: 30 31 2C 0D 0A
 
I then use a comparison to see if the above matches with a string that is the same as above..
 
BUT THE PROBLEM IS IT ALWAYS SHOWS FALSE THAT THE STRING DOES NOT MATCH???
does anyone know why??
 
thanks
 
any similar VI's 
0 Kudos
Message 1 of 2
(2,536 Views)

Flip the last two characters:

"01,\n\r" is 30 31 2C 0A 0D (not 30 31 2C 0D 0A!) 🙂

 
0 Kudos
Message 2 of 2
(2,534 Views)