Sending Hex Strings in Diagnostics
screenscribe
Posts: 33
I am using Emulate Device in Diagnostics and I'm trying to send a series of hex values as bytes to my device by putting the following string in the Message to Send box:
$91,$03,$01,$00,$01
However, when the string reaches the buffer, it sees each individual character instead of the hex values. How do I signify that I'm looking to send an individual HEX value ($91) to the device instead of three individual characters ($ - 9 - 1)
Cheers,
Matthew
$91,$03,$01,$00,$01
However, when the string reaches the buffer, it sees each individual character instead of the hex values. How do I signify that I'm looking to send an individual HEX value ($91) to the device instead of three individual characters ($ - 9 - 1)
Cheers,
Matthew
0
Comments
http://www.amxforums.com/showthread.php?t=4380&highlight=emulate
You need to use the Diagnostics window in Netlinx Studio and not the standalone which is what I was using. You also need to check the String Expressions checkbox. I was not able to get this to work using Control a Device though...at least, I couldn't catch the execution in debug if I did it this way...I was able to catch it when I ran it through Emulate a Device.
Cheers,
Matthew