10-16-2013 10:45 AM
Hello
Any one can give a idea abt:
How to convert a array with tree elemenets {0xAB , 0xCD, 0xEF} to a number 0xABCDEF in TestStand?
Thanks in advance
10-16-2013 11:19 AM - edited 10-16-2013 11:19 AM
Attached is one way to do it. Kind of a hack.
Another thing you can do is look at the Str() function. It looks like it will automatically concatenate an array into a string.
Hope this helps,
10-16-2013 11:56 AM
Something like this:
Locals.combinedBytes = Locals.arrayOfBytes[0],
Locals.combinedBytes = Locals.combinedBytes << 8 | Locals.arrayOfBytes[1],
Locals.combinedBytes = Locals.combinedBytes << 8 | Locals.arrayOfBytes[2]
-Doug
10-17-2013 04:58 AM
Thanks, thats exactly what I needed.