Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a 'string' and a 'single' to the same file. What is the best way to do this?

Hello,

 

I have two variables which I would like to save to the same file. The variables are continuous in real time and need to be appended to the file continuously. I am currently using 'write to spreadsheet file.vi' but this only accepts 1D and 2D data. Bundling doesn't seem to work in this instance.

 

The variables I am saving together are a time and date stamp and current data from a lock-in amplifier. I realise that using 'write to spreadsheet file.vi' is not the best way to do this.

 

19041i8E0D876B8376E8EF<<<<<<----------Not the best way.

Any help would be most appreciated.

 

Nevica

 

0 Kudos
Message 1 of 2
(3,040 Views)

Hello Nevica,

 

I have found a way of saving the time stamp and any given array being generated into a file, which can be read using excel.  Please open the attached VI snippet for you to view and paste it into your VI. Everytime the program is run, the file is appended with the new information generated (including a time stamp), which can be viewed as a spreadsheet.

 

Regards Ben

0 Kudos
Message 2 of 2
(3,003 Views)