LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Signed and Unsigned integers

Hi,

 

I have a program where I need to write an array of 12 registers into a modbus address. Now the problem is the first 4 are signed integers and the second 4 are unsigned integers. Is there a way to create an array with both signed and unsigned integers. Thank you. 

 

Govind

0 Kudos
Message 1 of 2
(880 Views)

Type cast signed data to unsigned before combining them into the array. This will preserve their binary representation.

Of course, use the resulting array only for Modbus writing, not for data processing.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 2
(870 Views)