10-19-2010 04:05 AM
Hello community,
I am using a infrared thermometer which is connected through the serial control. To change the emissivity I have to send a special command, e.g. emissivity 0,95 needs the command (HEX) 84 03 B6. 0h84 is the command and 0h03B6 is the emmissivity 0,95 * 1000 in hex.
When I use a string control which is set show hex everything works fine.
Now I want to programmatically change the emissivity. For that I have to join the command 0h84 and the new value.
The problem is, that I get a string which contains the right hex values, but I have to convert this string into hex string - I mean the same values as if I set a strin control to show hex.
Does anyone have an idea?
Thanks a lot and best regards.
Michael
10-19-2010 04:37 AM
Hi Michael,
It sounds like you just need to cast the binary data to a string to send it. We can do this with the flatten to string function. Please find an example attached, is this what you were after?
Regards,
10-19-2010 04:37 AM
Hi Michael,
It sounds like you just need to cast the binary data to a string to send it. We can do this with the flatten to string function. Please find an example attached, is this what you were after?
Regards,
10-19-2010 04:37 AM - edited 10-19-2010 04:41 AM
here we go
Kudo wellcome 😉
EDIT: not fast enough... 🙂