Home AMX Forum NetLinx Studio
Options

Control a Device Dialog

Hello all.

Simple frustration here: Message(s) to Send text field and the String Expressions check box.

Perhaps I just don't get it, but I cannot figure out how to format what I want to output. I have read the help page on many occasions, and its explanation leaves me more confused. Probably the easiest way to explain this would be an example. I want to send:

"This is my string" with a 0x03 (CR, $03) on the end.

In Java, a simple concat would work (with a cast for the CR):
"This is my string" + (char) 0x03
or
"This is my string\r" - for the escape sequenc

I have tried:
"'This is my string',$03" with the String Expressions checked
"This is my string",$03 with the String Expressions checked
'This is my string,$03 with the String Expressions not-checked

All seem to fail.

(FYI - Baud and other comm parameters are set correctly and intentionally.)

What is the right answer? Thanks in advance!

Matt

Comments

Sign In or Register to comment.