06-10-2017 11:07 AM
Hey there,
I'm trying to build a loop that will take a reading from a data acquisition device, show the reading on a chart within the loop, and after the loop is finished display the full results into a graph. Also, I'd like to create results of temperature with respect to time that I can write to an excel sheet once the loop is fully completed. The loop will be on for about 24 hours and takes a temperature reading every minute.
I'm just messing around with a simulated signal to try and get that working so far but I can't display my results into a graph at the end of a loop. Any suggestions on how I can do this?
Thanks in advance
06-10-2017 07:38 PM
There is nothing wrong with your code! It works just fine. The chart "Sine" shows the evolving sinusoid, and the Waveform Graph shows each sine wave, as you requested. Was that not what you wanted?
Bob Schor
06-10-2017 09:10 PM
Yes sorry, I figured out that I was pressing the "Abort Execution" stop sign (rather than my stop condition for the loop of pressing the boolean control) and it wouldn't cause the Waveform Graph to display anything.
Thanks for the reply
06-11-2017 09:30 AM
@kt1992 wrote:
Yes sorry, I figured out that I was pressing the "Abort Execution" stop sign (rather than my stop condition for the loop of pressing the boolean control) and it wouldn't cause the Waveform Graph to display anything.
So when you get to the point that you are writing "solid" LabVIEW code for others to use, you can go into the Window Appearance of your Top Level VI and turn off the "Show Abort button" to prevent your users from making a similar "mistake". In addition, you can also "trap" the Windows "Close" button (the "X" in the upper right corner) and make it do whatever you want (a Very Talented LabVIEW Developer, someone who is Fabiolous, taught me the virtue of making LabVIEW "behave" like any other Windows routine, so the Windows Close button doesn't simply stop the LabVIEW run-time engine mid-stream, but instead causes your code to do its programmed shut-down routine).
But that's, perhaps, for another day ...
Bob Schor
06-11-2017 09:39 AM
Thanks for your guidance Bob_Schor.
Normally we will hide the abort button.. here after we will take care about the windows close button in all our executable.
Thanks again. 🙂