loading
 
null characters
Roland from South Africa  [97 posts]
4 years

How does one send null characters, ie 0x00 through the serial port in a string?

As seen in the attached pic, I can send the characters in the direct 'Send Now' window, as in;
\85\170\1\0\1\0\0\0\18\0\19\1

but if I concatenate characters with & as in;
setVariable "serdat",chr(85)&chr(170)&chr(01)&chr(00)&chr(01)&chr(00)&chr(00) ........

it stops at the first chr(00)

I can't find the correct syntax to send my string out.

regards
Roland


 
Steven Gentner from United States  [1370 posts] 3 years
Roland,

Give the most recent version a try ... we've updated the Send Sequence to allow for null characters to be sent correctly.

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index