10-26-2011 03:21 PM
halo...
how to turn booleon6 for 5second and off booleon6 10secound?
and it is repeated forever.
10-26-2011 06:08 PM
Look for Wait primitive in Timings palette.
/Y
10-26-2011 11:00 PM
thank yamaeda...
i find Wait primitive in Timings palette.
so my problem, how i can to connect wait primitive in my block diagram..
i inclose the full block digram my project..
10-27-2011 06:29 AM
You'll need a Wait(100) or similar in the loop to stop it from hogging all cpu. You dont need to check the indicators 2 billion times a second.
You'll need 2 Tick count blocks, one from outside the loop connected with a shift register, and one inside. The difference is the time the program has run. Make a local variable of Indicator 6 to read and connect to a case selector (should really be a boolean with shift register also, but we'll start here).
In the case selector you'll need another case selector to which you connect the time difference. The 2 cases will be 6000.. and default (10000.. and Default in the other case)
Meh, bad description.
You'll need a case within a case. (there are other solutions ofc)
Outer case is "Is indicator true or false"?
Inner case is "How much time has passed"? - If enough time has passed, switch indicator and send new starttime to shift register, else send the old one.
/Y
10-27-2011 07:09 AM