|
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
|