LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial communication with hex

How do I send data in hex to the serial port?
Is there a way to convert hex string into numbers?

____________
Frode Efteland
0 Kudos
Message 1 of 6
(3,230 Views)
Have a look at the string functions, the additional string to number
functions. There you find all you need.

Niko
0 Kudos
Message 2 of 6
(3,230 Views)
I have a hex string "CA00 0120 00DE" to send to an intrument. The string is
in "hex display". How can I convert it from byte to byte into numeretic
format?

"Nikolai Maris" wrote in message
news:3E76E3F1.1B42A543@ib-mut.de...
> Have a look at the string functions, the additional string to number
> functions. There you find all you need.
>
> Niko
>
0 Kudos
Message 3 of 6
(3,230 Views)
Hi Frode

If you already have your values in a string you need not to convert them,
because the "write on serial port.vi" function or the VISA functions expect a
string as input for the data to send.
If you want to convert them into numeric bytes, you can use the "string in byte
array" function.

Niko
0 Kudos
Message 4 of 6
(3,230 Views)
Thanks Nicolai!

Now I've found the right track. Thou, I'm not using the VISA serial
communication. Is it as simple as the standard one? As an extention?

Frode

"Nikolai Maris" wrote in message
news:3E7703DE.81718251@ib-mut.de...
> Hi Frode
>
> If you already have your values in a string you need not to convert them,
> because the "write on serial port.vi" function or the VISA functions
expect a
> string as input for the data to send.
> If you want to convert them into numeric bytes, you can use the "string in
byte
> array" function.
>
> Niko
>
>
0 Kudos
Message 5 of 6
(3,229 Views)
I always use the serial port vi's and run very good with them.

Niko
0 Kudos
Message 6 of 6
(3,229 Views)