02-02-2009 02:12 AM
Hi there,
for a serial communication I need to send code-bytes in a hexadecimal ascii string. When I use constants and send them via VISA to COM port it works fine, but if I use number converters it doesn't. Can anybody show me what I'm doing wrong?
deepearth
--------------------------------
Windows XP SP3, LV 8.5.1
Solved! Go to Solution.
02-02-2009 02:26 AM
Hi deepearth,
i think the attached image shows what you need. If you change your indicator to "Hex display" then it should show what you wanna send as hex, not in normal display.
Hope it helps.
Mike
02-02-2009 02:43 AM - edited 02-02-2009 02:44 AM
Since your string indicator is set to hex display, it seems you want a hexadecimal string, one byte/number.
(You are currently use a hexadecimally formatted string, consisting exclusively of the ASCII characters "0..F" at 2 characters/byte. This is not what you want!).
Here's another solution using typecast:
02-02-2009 04:10 AM
Hello altenbach,
thank you for your answer. This version works fine.
regards deepearth