03-02-2004 10:27 AM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-02-2004 11:03 AM
03-03-2004 08:38 AM
03-03-2004 10:20 AM
The subVI can only be run by one of them at a time, assuming it isn't reentrant, and if its preferred priority is set lower than one of the callers, it will be boosted to match the higher of the callers.
--- The subVI was set to "normal" priority, excluding the experiments.
So, you're saying that the "object" subVI in question was boosted to above-normal prio
rity because one of it's callers was above-normal. Fine.
That doesn't explain why it then took LONGER to execute. Is there a penalty for calling a higher-priority VI from a lower one? Apparently so. Maybe some extra trips thru the scheduler?
I didn't test it, but I'd guess from what you're saying that if I boosted the priority of the tester, the penalty would have disappeared.
Regardless, I am working fine with subroutine priority, but I want to understand things better. I've read the app note (#114, I think), but I can't see a connection between the words there and my situation here.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-03-2004 11:27 AM
03-03-2004 01:10 PM
For what it's worth, I DID verify that setting the priority of the tester to match the dummy caller restores the normal execution time.
Also for what it's worth, I ran the same tests on Mac OS X. The same behavior results, except that the difference is more extreme (10 mSec --> 55 mSec). But matching priorities works there as well.
More information:
The dummy caller is not even necessary to prove the point - like Greg said, it is boosting the priority of the VI it calls, even though it doesn't execute.
Without the dummy even loaded, if you set the priority of the time-waster VI to HIGHER than the tester, the penalty is imposed.
>The rule as I understand it:
A time penalty is imposed when a VI calls a higher-priority VI. (Subroutine priority excepted).
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-03-2004 01:36 PM
03-03-2004 02:23 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-03-2004 02:30 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
03-03-2004 02:59 PM