‎09-29-2009 09:37 AM
‎09-29-2009 09:38 AM
‎09-29-2009 09:42 AM
I also think about 'memory efficient'. I can't imagine a way to wait that takes more than a few bytes.
Felix
‎09-29-2009 09:43 AM
smercurio_fc wrote:
I have to ask: What's wrong with the Wait function?
Short of inhibiting the CPU clock the Wait function is the best method of waiting.
Bracing for a re-wording of the Q,
Ben
‎09-29-2009 10:13 AM
Ben wrote:
smercurio_fc wrote:
I have to ask: What's wrong with the Wait function?
Short of inhibiting the CPU clock the Wait function is the best method of waiting.
Bracing for a re-wording of the Q,
Ben
Depending on how long you need to wait and whether or not you have the requirement to abort the wait early a queue or notifier with a timeout is also a good way of waiting. This gives you the ability to abort early if necessary. This is handy if you have long wait times.
‎09-29-2009 10:42 AM
Mark Yedinak wrote:Depending on how long you need to wait and whether or not you have the requirement to abort the wait early a queue or notifier with a timeout is also a good way of waiting. This gives you the ability to abort early if necessary. This is handy if you have long wait times.
I never really thought about using a queue in that way before. You have a dequeue element with a timeout. When it times out, your time is up. If you want to stop the timer early, then you place an element in the queue from anywhere else in the code. You don't even care about the data in it and wouldn't have to wire it up at all. You have an output that tells you whether it timed out or not and can be used as a decision on whether to continue with the code normally or to stop the loop.
I like it. I'll have to keep it in mind for the future.
Now if you have a situation where you don't want your loop to hold waiting for the time, but perhaps doing certain things when the time is not up and something else when the time is up, then the elapsed time Express VI works well for that.
‎09-29-2009 11:46 AM
"Depending on how long you need to wait and whether or not you have the requirement to abort the wait early a queue or notifier with a timeout is also a good way of waiting"
priceless!
‎09-29-2009 12:12 PM
chrisger wrote:"Depending on how long you need to wait and whether or not you have the requirement to abort the wait early a queue or notifier with a timeout is also a good way of waiting"
priceless!
And I wasn't even using a Visa card.
Thanks.
‎09-29-2009 02:19 PM