LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

long array convert into U32 number

I have a test pattern 0 1 0 1........2M bits and I  read this pattern from a txt file and converted into a long array. Now I want every 32 bits of the long array converted into a U32 number and save this number to a FPGA memory address. Is there any VIs that can convert every 32 elements of the array into a U32 number?
 
Thanks.
0 Kudos
Message 1 of 2
(2,601 Views)
Feed your array into a "!=0" and it will turn into a boolean array (1=true, 0=False). Now you can use "boolean array to number" to turn it into an U32.
 
Reshape your original array so each row contains 32 elements and you can easily do it in a loop as in this figure.
 
 
 

Message Edited by altenbach on 11-04-2005 05:56 PM

0 Kudos
Message 2 of 2
(2,600 Views)