LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case selector

Solved!
Go to solution

Hi guys,

 

I just wondering at what condition, the second case structure will be true?

 

I tried couple of times will  different values I gave to elapsed time, looks like no matter what, it always will be false and the true state in the second case sturcture never be executed. May I right?

 

Thanks

0 Kudos
Message 1 of 7
(3,251 Views)

You need a while loop around the elapsed time VI so that it will continue to check.  Otherwise it only checks one time (immediately after starting the timer).

 

Capture.PNG

aputman
Message 2 of 7
(3,233 Views)

The elasped time vi returns a true when a certain amount of time has elapsed...

The input determines how much time this is for or, if left unwired like in your screen shot, it defaults to 1 second.

 

2013-08-14 12_34_34-Untitled 1 Block Diagram _.png

Message 3 of 7
(3,228 Views)

Thanks for reply


I think I setup my Elapsed Time for 2 seconds in my case, so is that means every 2 seconds I suppose to get a True run once then if I do have a while loop?

0 Kudos
Message 4 of 7
(3,217 Views)

@huskerli wrote:

I think I setup my Elapsed Time for 2 seconds in my case, so is that means every 2 seconds I suppose to get a True run once then if I do have a while loop?


I don't understand what you mean here...

0 Kudos
Message 5 of 7
(3,208 Views)

Hi, altenbach


I just want to know what I need to do in order to see the True statement been executed in my case?

 

Thanks

0 Kudos
Message 6 of 7
(3,201 Views)
Solution
Accepted by topic author huskerli

You need to spin the loop until the time has elapsed.

Message 7 of 7
(3,198 Views)