LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop plot if time elapsed

Hello, i have the following application : 

I clic on start measurment button -> the SM moves to supervision state 

  • if the continuous recording LED is on -> the SM moves to wait for event state and wait for user to press on stop button to move to the stop mesure state
  • if the continuous recording LED is off -> the SM moves to wait elapsed time state and wait that the recording time is elapsed " example 1h " to move to the stop mesure state. 

i have probleme in calculating the elapsed time = wait elapsed time state!

Download All
0 Kudos
Message 1 of 4
(950 Views)

We can't really debug truncated pictures.

 

(we have no idea what's in the other of the visible case structure. we have no idea where all the terminals of your local variables are, What determines the start time? what's in that seemingly pointless subVI? Where is the "continuous LED", what determines its value (is that a control or indicator)? etc.)

0 Kudos
Message 2 of 4
(918 Views)

Hi, Jasmin185

 

I am not quite clear with your coding but a suggestion from me is that:

  1. Get time during the wait for event state for the start time
  2. Get time during the wait elapsed time state for the end time
  3. Calculate the elapsed time by subtracting the end time and the start time

 

0 Kudos
Message 3 of 4
(918 Views)

Maybe this can give you some ideas:

 

altenbach_0-1653579644608.png

 

0 Kudos
Message 4 of 4
(903 Views)