06-10-2013 03:32 PM
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!
06-10-2013 03:42 PM
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.