NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to concatenate a six bytes into a single variable

Hi,

     how to concatenate six bytes into a single variable.

      For example:

                        a=(Parameters.output[1]<<24)+(Parameters.output[2]<<16)+(Parameters.output[3]<<8)+(Parameters.output[4])

      like this how can i concatenate the 6 bytes........

 

 

 

 

 

 

Thanks in Advance!!!1             

0 Kudos
Message 1 of 2
(3,861 Views)

Hi,

if you are using >= TS2010 there  is support of 64Bit integers (int64 and uint64).
with it you are able to store your 6 bytes.

 

I am using it for saving MAC-Address.

 

 

Regards

 

Juergen 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 2
(3,857 Views)