LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subroutine priority failure

Hello! I have a subvi that does some matrix operation and made it a "subroutine priority" vi. But when called from the main vi it returns "inf" and it takes 0 seconds to execute. It should take atleast some seconds. It executes correct if set to some other priority.
Please help me!
/thomas
0 Kudos
Message 1 of 6
(2,431 Views)
Does it call sub vi's that are not subroutine priority, or have an asychronous node?

Les.Hammer@CompleteTest.com
0 Kudos
Message 2 of 6
(2,431 Views)
Make sure the subVI is not broken after changing to subroutine, for example if it itself calls a non-subroutine VI.

How are you calling the subVI? If you call it indirectly (e.g. by using "call reference node" or "invoke node"), you might not notice if it is broken unless you wire the error output.

(Of course if the broken VI is placed on the main diagram directly, the main VI would also be broken.)
0 Kudos
Message 3 of 6
(2,431 Views)
Hello again! Nothing of the above worked. Here are the two vi:s.
/thomas
0 Kudos
Message 4 of 6
(2,431 Views)
Your input parameter is missing in the subvi.
It looks like there is a small difference when called with subroutine priority and other priorities. With other priorities and an open subvi frontpanel it takes the value from the frontpanel, with subroutine priority it does not, but takes the default value this is a zero normally. If you put in another default value (with make current values default) you see that this default is used also in subroutine priority.

succes
greetings from the Netherlands
0 Kudos
Message 5 of 6
(2,431 Views)
Thanks a Lot! It helped to change the control to a constant in the subroutine!
/thomas
0 Kudos
Message 6 of 6
(2,431 Views)