View Single Post
  #6   Spotlight this post!  
Unread 15-02-2010, 14:14
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Timing functions

This can be used with a state machine (or not).

A lot depends on what else is going on in the state or what other parallel loops you have going on. You could have multiple state machines running in parallel.

But you could use the output of the Hold and Release to decide when it is time to change states.

Note: This VI is Reentrant so that it can be use to control one than one motor, There for each place you use it, they are independent of each other and will not know what time has been set in the other placements. Meaning you have to return to the same clone to detect the timeout.

So if you want to set it one state but check it another state you will need to make a copy of it and rename to dedicate to that motor or function and make it non-re-entrant. Then you will be able to set the hold time in one location, but be able to check the timeout in another location.

Omar
__________________
Omar
Reply With Quote