08-10-2017 08:54 AM
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.
08-10-2017 09:00 AM
Sorry, that was Error 1026.
08-10-2017 09:50 AM
Are you closing the ref to the inserted VI?
Ben
08-10-2017 09:59 AM
Wire the error out from the "insert" node to the error in of the close reference.
08-10-2017 11:32 AM
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).