LabVIEW Development Best Practices Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Software Control Timing Best Practices (Consumer Loop/State Machine)

Highlighted

Say I have a simple piece of code that needs to execute once, wait n seconds, and then execute again.

 

For Example a Stoplight:

Change to Red

-holds-

Change to Green

-holds-

Change to Yellow

 

What is the best way to keep the front panel responsive without continuously repeating the "Change to [Color]" state until you want the next color?

0 Kudos
Message 1 of 2
(1,375 Views)

Look at the Time-Delayed Send Message from the ActorFramework, <vilib>/ActorFramework/Time-Delayed Send Message. It allows for sending a message after a specified delay.

0 Kudos
Message 2 of 2
(1,005 Views)