Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

saving data

Hi all.
Please, here i have a problem in saving the acquired data to spreadsheet. I have 3 while loops, one loop to control the starting , toggling between inner loops and stopping the program. For the two inner loops, the left one will start and execute for 3 second and then then right loop will start and execute for 3 seconds also, after that the left loop will start again and the program continue in this manner. My problem, I want to save the all data from the start to stop of program, but I couldn't catch that. I used all types of mechanical actions of the stop bottom, but nothing changed. I noticed that when I press the abort execution botton in the tool bar, the data will be saved as desired. That means there is some way to save this data using stop bottom, So please how can I solve this problem?
Thank you

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

You should move your writing of the header data to be before your outer loop.  That only needs to be written once.

 

Make sure you are passing the file references out of the outer loop so that you can close them properly.

 

Your stop button should be set to Latch When Released.  And then you want to wire the string output of the second inner loop to the sequence structure.  This will create a data dependency and makes sure the stop button is read after the two inner loops are ran.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(3,439 Views)