LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to Excel Text File After Program has Run

I'm writing a program that creates a plot of a sinusoidal and updates every .5 second.  It has an option to write to a file or not.  My question is how do I give the user the option to a) not save the data at all b) write the data after the plot is complete or c) write each data point after it is plotted.  Any suggestions/help is welcome! 

I attached the current VI.

Thanks so much!

0 Kudos
Message 1 of 2
(2,166 Views)

I would create an enum that has all 3 options.

 

Inside the while loop, I would create a case structure that has the Write to File for the case that pertains to every iteration.  A build array for the case that writes the data after execution.  And nothing in the Do nothing case.

 

After the loop, I'd have a case structure that has a Write to File for the case that writes data at the end of execution.  And does nothing in the other 2 cases.

0 Kudos
Message 2 of 2
(2,163 Views)