RS232 and HEX
McNeill
Posts: 14
How can I assign a hex command string to a variable or constant and the transmit it? I tried putting this statement under the define_constant section:
dvProjVidInput = "$02,$41,$44,$5A,$5A,$3B,$49,$49,$53,$3A,$56,$49,$44,$03"
And then send it with:
SEND_STRING dvProj, dvProjvidinput
I am seeing $02,$41,$44,$5A,$5A,$3B,$49,$49,$53,$3A,$56,$49,$44,$03 out the comm port but if I do this:
SEND_STRING dvProj, "$02,$41,$44,$5A,$5A,$3B,$49,$49,$53,$3A,$56,$49,$44,$03"
it works... What am I missing?
dvProjVidInput = "$02,$41,$44,$5A,$5A,$3B,$49,$49,$53,$3A,$56,$49,$44,$03"
And then send it with:
SEND_STRING dvProj, dvProjvidinput
I am seeing $02,$41,$44,$5A,$5A,$3B,$49,$49,$53,$3A,$56,$49,$44,$03 out the comm port but if I do this:
SEND_STRING dvProj, "$02,$41,$44,$5A,$5A,$3B,$49,$49,$53,$3A,$56,$49,$44,$03"
it works... What am I missing?
0
Comments
Should be as
Define_Constant is fine for this
Thanks Guys!! I knew it was something simple on my part that was amiss.