04-25-2012 11:17 AM
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.
Solved! Go to Solution.
04-25-2012 11:52 AM - edited 04-25-2012 11:53 AM
@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.
04-25-2012 12:51 PM
Can you offer more insight?
Thanks,
hiNi.
04-25-2012 01:12 PM
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:
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.
04-25-2012 03:24 PM - edited 04-25-2012 03:25 PM
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)

04-25-2012 03:59 PM
THANK YOU!