As Jo said use Control a Device, Emulate a Device allows you to pretend to be a touchpanel etc.
If you want to test strings coming into a RS232 Port the easiest way is to short Pins 2 & 3 on the port and use Control a Device to send the string your expecting to receive.
I dont think Emulate a Device set to a Serial Port number will work.
the problem is to send hex value! If i Emulate a Device with the device port system I receive the correct string.
But I need to insert into the string the hex value and I can't. Why? How Can I insert hex value?
thanks.
alex
the problem is to send hex value! If i Emulate a Device with the device port system I receive the correct string.
But I need to insert into the string the hex value and I can't. Why? How Can I insert hex value?
thanks.
alex
I don't understand your question. The example I gave you does have a hex value in the string and Emulate a Device does work. Where's the problem?
How you interpret the data coming in is up to you. A $0D is the same as 13.
In my diagnostics don't works. I see $0D( char $ char 0 char D) and not 13.
In your example you speak about a 'string expression' to check in. Where is it? I can't find it!
in the data_event create a local_var char yadadada[100]
yadadada = data.text
look at yadadada in debug to track your feedback, now for the other question like so in control a device after you have filled in DPS example for a device on com 1 and your still using the default settings that came with the box you would do 5001:1:0 tick string expression and notification tab then send:-
“’POWON’,$0D”
or
“’POWON’,13”
or if you really wanna be technical
“’POWON’,itohex(13)”
lol
P.S.you may wanna open up debug and drop yadadada in there to see what you get back
Comments
Enter the device, port, and system. You can?t use 0 for the system number; you need the actual system number.
Message Type: String
String Expressions: checked
Message to send: ??POWON?,$0D?
Press Send to Device
HTH
I didn't see
String Expression: checked
and It not work. It send "'POWON',$0D" withou translation to hex value.
If you want to test strings coming into a RS232 Port the easiest way is to short Pins 2 & 3 on the port and use Control a Device to send the string your expecting to receive.
I dont think Emulate a Device set to a Serial Port number will work.
But I need to insert into the string the hex value and I can't. Why? How Can I insert hex value?
thanks.
alex
How you interpret the data coming in is up to you. A $0D is the same as 13.
In your example you speak about a 'string expression' to check in. Where is it? I can't find it!
yadadada = data.text
look at yadadada in debug to track your feedback, now for the other question like so in control a device after you have filled in DPS example for a device on com 1 and your still using the default settings that came with the box you would do 5001:1:0 tick string expression and notification tab then send:- lol
P.S.you may wanna open up debug and drop yadadada in there to see what you get back
I've found it to. would'nt swear to it in a court of law right now though...
Now I have see it!
Thanks a lot
Ciao
Alessandro