Mark Yedinak Posted March 21, 2009 Report Share Posted March 21, 2009 Here is a simple example of a parallel timer. This was whipped up pretty quickly and I was lazy and didn't create a typedef for the ENUM for the timer events. But this gives you a simple example of how you can handle this in a parallel task. You could also incorporate this into your current state machine but it does create additional overhead. Separate tasks (parallel loop) are a nice way to handle this type of thing. Quote Link to comment
Michael Aivaliotis Posted March 21, 2009 Report Share Posted March 21, 2009 Here's an example of how to implement it in your state machine. The while loop would be your state machine loop. However with a little smarts you could probably make this into a subVI function. Quote Link to comment
BenD Posted March 21, 2009 Report Share Posted March 21, 2009 QUOTE (Kubo @ Mar 20 2009, 12:12 PM) Do you happen to have an example of a timer? Maybe a start, stop and reset function? Here's a timer functional global that I whipped up not too long ago: http://forums.lavag.org/Timer-with-Pause-v...bal-t13420.html Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.