LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1000 - Running Subpanel and Main Vi Simultaneously

Solved!
Go to solution

Hello,

 

I'm attempting to run a simple subpanel at the same time as the main .vi. It works when I set both "Wait Until Done" and "Auto Dispose Ref" to true (although I get an Error 1026 upon termination).  However, I want run the routines simultaneously. When I set "Wait Until Done" to False, it gives me Error 1000 (although it appears to run the subpanel portion of the program until I select "Stop" in the popup error message). I've scoured the forums trying to fix whatever my issue is, but I can't seem to get it right. I've attached my programs below hoping the community can help me.

 

Thank you,

Dcgronse

 

Side note: I'm using this very simple example so I can later translate it to my more complex program. I've also just recently started learning Labview.

Download All
0 Kudos
Message 1 of 2
(2,996 Views)
Solution
Accepted by topic author Dcgronse

The reason you get error 1000 when Wait Until Done is False is because on the 2nd iteration of the main VI, you are trying to run the subVI which is already running.

 

The reason you get error 1026 when you set Auto Dispose Reference is True is that once you've used the reference it gets rid of it automatically.  Then when you try to run it again in the next iteration, you get the original value from the tunnel, but it has been disposed of in the last iteration so it is no longer valid.

 

It seems to me what you want is to set Wait Until Done to False, but make sure you don't try to run the VI again whenever it is already running.  Simplest thing to do might be to just clear the error that comes out of the Run VI node.

0 Kudos
Message 2 of 2
(2,977 Views)