LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save file

Hello,

 

Can you help me to save the array in the attached VI for the "Write" case?

 

Thanks.

0 Kudos
Message 1 of 4
(3,641 Views)

Hi hiNI,

 

you need to reverse the conversion you made when loading your data: create an 2D array from your array of cluster!

check.png

(#10k)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,600 Views)

@GerdW wrote:

Hi hiNI,

 

you need to reverse the conversion you made when loading your data: create an 2D array from your array of cluster!

check.png

(#10k)


I think this gives the transpose of the array you want (i.e. interchanges rows and columns).  The input was "Mode, Quantity, Weight, Mode, Quantity, Weight", but the above output is "Array of Modes, Array of Quantities, Array of Weights".  I make this mistake all the time, but fortunately LabVIEW has a "Transpose 2D Array" function to save the day -- put it right before the Write to Spreadsheet.

 

BS

0 Kudos
Message 3 of 4
(3,576 Views)

@Bob_Schor wrote:
 I make this mistake all the time, but fortunately LabVIEW has a "Transpose 2D Array" function to save the day -- put it right before the Write to Spreadsheet.

Or just set the "Transpose" Boolean input to the Write to Spreadsheet File to TRUE.  It saves a step.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(3,553 Views)