VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading an RS232 message with a percent (%) sign in it

I'm using Instrument add-on custom device to read rs232 signals and it has worked well for me in the past however I've run into an issue. I added a new device from Omega (an HX200 humidity and temperature sensor) that has a message that is screwing me up. This is a direct message from the sensor as read from Terra Term, it looks the same in NI-max.

 

\r%RH=\s18.26,\sDPC=\s-8.23,\sATC=\s15.88\n

 

When I try to specify the response format in Veristand, it appears that the % is causing it to choke. I'm guessing the Visa behind the custom device is having an issue with the % sign because it's thinking it's a format specifier? I don't have a way to change the message from the HX200 that I'm aware of. Is there a simple way around this issue? I've emulated the device with another computer+rs232 adapter broadcasting with terraterm and it works up until the point I add the % sign, then I get read error 82

 

Thanks in advance!

0 Kudos
Message 1 of 2
(230 Views)

Figured it out in case anyone is following. Stupid simple solution, changed "%" to "%%"

0 Kudos
Message 2 of 2
(209 Views)