LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manipulate array

Solved!
Go to solution

Hello,

 

In the attached VI, is it possible to save the original array and scanned array like the image shown?

 

Thanks for your help.

 

hiNi.

Download All
0 Kudos
Message 1 of 6
(3,190 Views)

@hiNI wrote:

Hello,

 

In the attached VI, is it possible to save the original array and scanned array like the image shown?

 

Thanks for your help.

 

hiNi.


Yes.  Just do some formatting of your 2-D array before using your Write to Spreadsheet File.

 

You don't need your stacked sequence or local variables.

0 Kudos
Message 2 of 6
(3,184 Views)

Can you offer more insight?

 

Thanks,

hiNi.

0 Kudos
Message 3 of 6
(3,172 Views)

You've already got the writing of your initial array working.

 

All you really need to do to get your desired output is add your scanned array to your original array as additional columns.

 

Here's an example:

Form 2-D Array for Spreadsheet Write.png

 

Note that because LabVIEW only uses square arrays, you'll end up with some extra zeroes.

 

If you really want nice formatting of your csv, you'll have to write your own function for writing the output file.

Message 4 of 6
(3,166 Views)
Solution
Accepted by topic author hiNI

All you need is write a four column array for the first N lines, and then the remaining two column array. Do these in text in order not to pad with blanks. Here's a quick draft that seems to do the job (LV 8.5). Modify as needed (formatting, delimiters, etc)

 

Download All
Message 5 of 6
(3,155 Views)

THANK YOU!

0 Kudos
Message 6 of 6
(3,141 Views)