LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Panel VI gives me Error 1036 at Invoke Node

I don't get it. This program used to work. But now I get Error 1036 at the same Invoke Node. I feel like this should be pretty straight forward, but....nope. Anyway, here's my code. Just fill in the file path to whatever VI you have of your own.

0 Kudos
Message 1 of 5
(2,339 Views)

Sorry, that was Error 1026.

0 Kudos
Message 2 of 5
(2,333 Views)

Are you closing the ref to the inserted VI?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 5
(2,316 Views)

Wire the error out from the "insert" node to the error in of the close reference.

Ian
LabVIEW since 2012
0 Kudos
Message 4 of 5
(2,308 Views)

Yep, you have a classic race condition.  The Close is just barely getting executed before the Insert VI, causing your Insert VI to have an invalid reference.  As was already said, use the error cluster to make sure your functions operate in the proper order (use data flow).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(2,292 Views)