LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert cluster of SINT16 to array of bytes

Hi,
I need to convert a cluster of short int16 to an array of bytes. Could you please help me with this? I am using LabView 7.0.
 
PACKED_STRUCT_TYPEDEF Test

{

    SINT16  A;

    SINT16  B;

/* no pad needed. */

} Test PACKED_STRUCT;

 

Thanks!

Mim

0 Kudos
Message 1 of 3
(2,953 Views)
You can use the type cast function,as shown in the picture and in the attached vi.
 
 
BTW, an SINT16 is not a "short" integer, it's a 2-bytes signed integer... I16 in LV, instead of U16 for unsigned integers  😉

Message Edité par chilly charly le 09-27-2005 07:25 AM

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(2,945 Views)

Thank you for helping me with this.

My app works fine now.

0 Kudos
Message 3 of 3
(2,928 Views)