01-31-2006 09:03 PM
01-31-2006 09:30 PM
Hi Richard,
Tricky problem...I think the String to Byte Array and Byte Array to String functions will help you. I also used the Split 1D Array function in a loop to get the array items two at a time. I've attached a LabVIEW 7.1 VI to this post that shows how I would do it. I'm sure there's a more efficient way to do it, but this one was the most straightforward to me (i.e., it was the first thing I thought of).
Hope this helps,
-D
01-31-2006 09:32 PM - edited 01-31-2006 09:32 PM

Message Edited by Enrique on 01-31-2006 10:32 PM
01-31-2006 10:58 PM
01-31-2006 11:05 PM
Bravo, fahlers. This is definitely the best approach. I always forget about Typecast when I'm playing around with data representations. 🙂
-D
01-31-2006 11:49 PM
02-01-2006 07:40 AM
02-01-2006 09:52 AM - edited 02-01-2006 09:52 AM
The For Loop will iterate a number of times equal to the size of the array indexed into its border. With fahlers' example, the array is half the size of the string length, since the string characters are grouped together two at a time when typecasting them to U16s (since a single character in a string is 8 bits, and a U16 is 16 bits).
-D
Message Edited by Darren on 02-01-2006 09:56 AM
02-01-2006 11:22 AM
02-01-2006 12:28 PM
| Robst - CLD |
| Using LabVIEW since version 7.0 |