LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

best way to write specific information to a file

Hi there,

 

I'm looking to write specific information from my program to 2 separate files.

 

Before the program runs, it asks the operator for their info (name, password, run ID #, a couple safety checkboxes).

 

So, I would like the first file to record log-in information (i.e. The operator's name, the date and time they accessed the program, and the Run ID #) all in a spreadsheet.

 

I would like the second file to record data from the different components of the program ( 2 tank levels, a flow meter, and run ID #) in another spreadsheet.

 

Any thoughts on the best way to do this? I've looked at using arrays to organize the info/data, and then write to spreadsheet, but I haven't quite figured it out...

 

Thanks,

Daryn

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

For the first, you could convert everything to strings, then send an array of strings. For the second, just send an array of numbers.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 3
(2,262 Views)

Daryn,

 

Often the best way to get specific help on something like this is to post your attempts along with a detailed epxlanantion of what you want it to do that it does not do.

 

Look at the File examples. It is quite likely that one of those or a combination of two of them will do most of what you want. Look under the Help Menu for Find Examples...

 

Lynn

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