LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Signal Simulation Loop

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

0 Kudos
Message 1 of 5
(4,253 Views)

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

Message 2 of 5
(4,207 Views)

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

0 Kudos
Message 3 of 5
(4,203 Views)

@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

Message 4 of 5
(4,164 Views)

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. 🙂

Thanks & Regards,
Ilamparithi Tamizhanangu
0 Kudos
Message 5 of 5
(4,161 Views)