LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Byte swapping a two dimensional array of singles and saving results to a binary file?

Hello,
 
I modified the  two channel oscilloscope (DAQ Solution) such that it saves the aquired data to a binary file.  I soon found out that the binary file data was in Big endian format.
 
I tried using 8 bit/16 bit word swap and then a cast to single as shown in the attached document.  However,  I'm don't know how to create a 2D array from two 1D arrays.
 
Could someone tell how to do this.
 
Thanks,
Steve
 
0 Kudos
Message 1 of 2
(2,088 Views)
Hello,
 
You can use the Build Array function to create a 2D array from two 1D arrays - when you drop this function on the block diagram, it will only have a single input, but you can expand it to have multiple inputs.  It will build the 2D array as two rows, one corresponding to each of your 1D arrays.  If you want the array to consist of 2 columns corresponding to your two 1D arrays, use the Transpose 2D Array function.  Both noted functions are found in the Array palette; the attached screenshot shows a simple example.
 
I hope this helps!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 2
(2,063 Views)