LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create spreadsheet file with a fixed number of rows

What is the most straight forward way to create a series of spreadsheet files each with a new file name and fixed number of rows.  We have a data acquisition process that creates a new 1D array every 2 seconds.  We'd like to build a series of spreadsheet files each having two hours or 3600 rows of data.  Is there a best way to do this in LV9?

 

john

0 Kudos
Message 1 of 4
(2,750 Views)

Use the low-level FileI/O Vis with Write to Text File.vi where you open a new file with every N iteration like this:

       test.jpg

 

You just have to convert your 1D Array to string before.

If you would like to have a new file every N hours you should create a FGV which checks the elapsed time using Get Date/Time in Seconds.vi, which is more appropriate for longtime applications.

 

 

Christian

0 Kudos
Message 2 of 4
(2,747 Views)

Christian

Thanks for your reply.  One question:  the icon on the s input to the Select.vi did not render clearly enough on the screen of my laptop to tell what it is.  Could you please give me the name of that .vi?

 

thanks

 

john

0 Kudos
Message 3 of 4
(2,733 Views)

First Call.vi, which is located unter the Synchronization Palette.

 

 

Christian

0 Kudos
Message 4 of 4
(2,727 Views)