LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Problem

Hi guys,

I am new to labVIEW.

I am currently working on adding a time delay into my block diagram in labVIEW.



Brief description:

There will be a counter(numeric 4) that keeps counting. It will be continuously divided by 30 and the result will be displayed at numeric 3.

When numeric 3 (remainder) becomes 0 (after divided by 30), an LED(turn) be turned on.

When numeric 3 is not 0, another LED(Keep going) will be turned on.

The problem is this:

I want to extend the light up timing of LED(turn) for 5 seconds after it lights up, even WHEN numeric 3 is NOT 0 anymore. Before switching off.

But I cannot do this because the circuit is running continuously. So as long as numeric 3 is NOT 0, it i will be turned off.

I tried doing a loop in loop, and adding a time delay of 5s inside the sub loop. But it does not work because it delays the circuit outside of the sub loop too.

It delays the circuit altogether. Which is not what I wanted.

-----


Can i get advise on how do I go about doing this?

And is there any changes in the block diagram that I could make, including the additions and removing of new components?

Thank you and I apologize for the brief context as I am new to labVIEW and cannot explain in detail.
0 Kudos
Message 1 of 3
(3,051 Views)
What is the value of the time delay for the express VI in the loop?
 
You say numeric 3 is a counter, but it just appears to be a control.  Are you just manually incrementing this?
 
What you could do is determine whether the equal zero is true, put the current time plus 5 into a shift register.  On every iteration, compare the current time with the shift register value.   Wire that the comparison current time < shift register with an OR to the equal zero and feed that to the boolean.  If the current time is greater, than reset the shift register to some very large time in the future  (+Inf) so that it will turn off the light the next time around.
0 Kudos
Message 2 of 3
(3,044 Views)
Maybe this will help you.
陈树学
QQ:276509891 .
EMAIL:CSXCS_366@126.COM
qq群:78561268 80754347 37591940
http://labview.weebly.com/
新书《LabVIEW实用工具详解》已经发售,敬请关注。
0 Kudos
Message 3 of 3
(3,030 Views)