06-11-2015 01:53 PM - edited 06-11-2015 01:53 PM
I'm running this VI on a cRIO-9066, and both "Wait" functions behave the same. After reading the LV Help, I would expect the "With Notifier History" one to return an array of two elements, not one. Is this a bug?
(Attachment is LV 2014 SP10
Solved! Go to Solution.
06-11-2015 02:57 PM
Are you delaying long enough for two notifications to arrive?
06-11-2015 03:16 PM
You never even opened the VI, did you?
06-11-2015 03:19 PM
If I had 2014, I would open it.
Good luck.
06-11-2015 03:35 PM
I think you want to set Ignore Previous? to False if you want to retain notifier history.
06-11-2015 03:41 PM
@Staab_Engineering wrote:
After reading the LV Help, I would expect the "With Notifier History" one to return an array of two elements, not one.
Why? Unlike the help for W4MN, the one for W4MNWH is not explicit in saying that it continues as soon as one of the notifiers gets a notification, but it also doesn't say it will wait for all of them. Your example clearly shows that it continues as soon as at least one has a notification.
I'm too tired at the moment to work through the W4MNWH use cases, so I have no particular expectation for how it should behave.
06-11-2015 03:49 PM - edited 06-11-2015 03:49 PM
When it returns is less interesting than what it returns with. I expected the entire purpose of "with notifier history" to be that it would return a value for every notifier provided, not just a value for the first one to hit. The former is the behavior I'm looking for, so I can write a loop to wait on two notifiers at once and know which fired first.
06-11-2015 04:00 PM
@Staab_Engineering wrote:
When it returns is less interesting than what it returns with. I expected the entire purpose of "with notifier history" to be that it would return a value for every notifier provided, not just a value for the first one to hit. The former is the behavior I'm looking for, so I can write a loop to wait on two notifiers at once and know which fired first.
It does return a value for every notifier that fired between the Waits. If one of the provided notifiers didn't fire, then it will not have a value.
In determining which one fired first, you can use the notifier out output and Get Notifier Status. (i.e. the first element of the notifier out output is the notifier that fired first)
06-11-2015 05:17 PM
Aha! Thanks!