LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Turning data logging on and off with a boleen push button

I am trying to log three analog signals to a
spreadsheet. I have no problem doing this but my application requires the need to turn the
data aquisition to the spreadsheet on and off. I
would like to accomplish this with a boleen push button. If anyone knows how to do this I would appreciate the help. Thanks in advance.
0 Kudos
Message 1 of 2
(2,561 Views)
You are probably using the Write to Spreasheet.vi.
If so you can simply place it in a case structure controlled by your boolean, remember to set the append to file input TRUE.
In this basic way you open and close your file each time you enable or disable the writing.
A more efficient approach is to open the diagram of Write to Spreadsheet File vi copy it in your diagram and place only the Write File+ (string)vi in your case structure.
Let your file to be opened at the start of your vi and close at the end
Message 2 of 2
(2,561 Views)