LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property only works when I convert the integer array to string array back to integer array

Hello,

I've made a vi that sends a command to a PLC-unit. The input is a byte-array but this only works when I convert the byte-array to a string-array back to a integer-array. (see attachment)
The only weird thing is that I can't find any difference between the array before the conversions and after the conversions.

Why do we have to do this step and is there a solution how we can make it work without this step?

Thanks in advance,

Jos
0 Kudos
Message 1 of 3
(2,306 Views)
The result of the double conversion is not a U8 array, but a I32 array, unless you wire a proper default value to the Decimal String to Number block.
Seems a waste of memory but probably not too much.
If the property really needs  I32, you may convert directly U8->I32 from the Numeric->Conversion palette.

Paolo

Message Edited by pincpanter on 09-20-2005 11:22 AM

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 3
(2,295 Views)
It works! Thanks!
0 Kudos
Message 3 of 3
(2,286 Views)