LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 Byte-Array nach String konvertieren

 
In LabView hab ich die Möglichkeit ein Byte-Array nach String zu konvertieren.
Ist das auch mit einem 2 Byte-Array möglich, gibt es da schon eine Lösung?
Oder wie kann ich das 2 Byte-Array in ein Byte-Array umwandeln?
 
English:
How can I convert a 2 Byte-Array to String
or 2 Byte-Array to 1 Byte-Array?
 
MfG
Thomas

Message Edited by thomhofm on 05-11-2006 02:07 PM

Message Edited by thomhofm on 05-11-2006 02:07 PM

0 Kudos
Message 1 of 5
(2,943 Views)
Hi Tom,
use the "flatten to string"- function from the palette "numeric"->"data manipulation". If you want to make an 8-bit-array, the "split number" and "interleave array"- functions could be fine.


Dave

Message Edited by daveTW on 05-11-2006 02:11 PM

Greets, Dave
Message 2 of 5
(2,932 Views)

Hi Thomas

I have not yet seen a way to convert a U16-Array to String.

Of course you can convert a U16-Array to a U8-Array, but you have to be aware of the fact that you may loose information.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 5
(2,928 Views)
Ok - that's a possibility. I thought about converting ASCII-Codes which are above 0xFF.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 5
(2,922 Views)
 
Thank you!
 
It works fine.
0 Kudos
Message 5 of 5
(2,913 Views)