LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data

hi all, I am contacting you as I am trying to understand how to save the data in the correct way.
The attached file is an example similar to what I really have in my Vi, in practice I have two arrays with n elements and I want to save the results inside a csv or txt file in such a way as to have the two array names and array 1 below which I want to be saved, in the respective columns the data present in the arrays.
How should I set up the Write Delimited Spreadsheet VI? I don't understand how to act on delimiters and line breaks.
An infinite thanks to those who help me.

0 Kudos
Message 1 of 5
(1,467 Views)

I looked at your code.  Even though it's only a small amount of code, you've managed to make it very messy.  So I stopped looking at it.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 5
(1,462 Views)

ho aggiornato il VI.

0 Kudos
Message 3 of 5
(1,450 Views)
0 Kudos
Message 4 of 5
(1,449 Views)

@giu95se wrote:

The attached file is an example similar to what I really have in my Vi, in practice I have two arrays with n elements and I want to save the results inside a csv or txt file in such a way as to have the two array names and array 1 below which I want to be saved, in the respective columns the data present in the arrays.
How should I set up the Write Delimited Spreadsheet VI? I don't understand how to act on delimiters and line breaks.
An infinite thanks to those who help me.


  • Arrays don't have "names", but you can write any column header strings you want. If you want one column per 1D array, you need to transpose the 2D array and there is an input for that..
  • The default delimiters are \t and you don't need to wire them unless you want something different.
  • Line breaks are automatic. Nothing to configure.
  • The file function understands DBL arrays directly. No need to convert to string first (You can set the format if you want to be specific)
  • ...

 

As others have said already, please have some respect and clean up your code (no highly excessive number of wire bends, crisscrossing wires, right-to-left wires, a descriptive file name ("Untitled 1.vi" is NOT a reasonable file name!), etc.)

 

Try something like this:

 

altenbach_0-1605637699810.png

 

 

0 Kudos
Message 5 of 5
(1,417 Views)