LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elapsed Time latches LED ONCE

Hi,

 

I am using a simple state machine for my multiple states on my main VI. I will see how it goes without adding the event-driven layer yet.

 

What i attached is just a VI that simulates one of the states (hence the State boolean).

 

Anyway, I'm looking for a simple solution to my problem inside this state. Which I believed and I've been said it should be very simple, but... it is hiding from us lol.

 

(Unless I pull the timer outside the state machine cases which is what I was being afraid of...)

0 Kudos
Message 11 of 15
(861 Views)

I still think you can use my suggestion as a template for ideas. I strongly disagree that a solution would involve an event structure. Use are polling digital signals, not user interactions.

0 Kudos
Message 12 of 15
(848 Views)

The only solution that I can see is to pull the Elapsed Timer outside (maybe use two timers?) because I can't figure out how to properly reset it otherwise (without it starting again in the same "state=1").

Do you have a more elegant/efficient idea?

0 Kudos
Message 13 of 15
(817 Views)

@ASX24 wrote:

The only solution that I can see is to pull the Elapsed Timer outside (maybe use two timers?)


I really don't understand where "outside" is. Also note that I did not use any express VIs.

 


@ASX24 wrote:

Do you have a more elegant/efficient idea?


You already talk about "states", so just design a proper state machine that implements all requirements.

 

0 Kudos
Message 14 of 15
(806 Views)

Outside the case structure. Because otherwise I cannot (not)reset the timer the way I want, right?

 

 

I believe I had already mentioned this VI being a simulation of one of the states. I am working on a larger state machine but that takes time so I am testing the code of some of the states independently (and with controls and leds instead of real channels) before I put the code into the main VI.

 

Anyway, this might not even be relevant.

 

I am just asking for ideas on how to implement the simple code I described earlier. Your VI is very nice but it does not solve the same reset problem I am trying to solve.

Could you be kind enough to attach a modification to your file if it is a simple workaround? I really can't make the reset work the way I want.

 

0 Kudos
Message 15 of 15
(795 Views)