10-12-2011 05:34 AM
I try to run a 'DAQ write' vi in a subpanel. It complains its not able to run it with the message above. I use the teststand API to get the subpanel vi's.
Solved! Go to Solution.
10-12-2011 06:17 AM
It doesn't appear that the problem is related to the subpanel because you only insert it into the subpanel after you start it running - and it it the Run method that is failing. One thing to try is instead before running the VI open its front paenl to see what state it is in. There is also a VI property called "Execution.State" that will tell you what state the VI is in.
Mike...
10-12-2011 06:43 AM
"Execution State" is returning me at the start 'Run top level' and at the end 'Idle'.
10-12-2011 06:58 AM
I can't put a reference to "this vi". It states inlining is enabled. How can I disable inlining?
10-12-2011 07:09 AM
I got it disabled. The state of the vi is 'run'.
10-12-2011 08:22 AM
10-12-2011 11:37 AM
I still got the error. But the vi runs. It seems it only display the error. But the run vi method works.
10-12-2011 11:41 AM
It probably means the VI is already running when you run the code. Without being able to see the whole thing, it appears that unless you stop the code when you swicth VIs for yout subpanel, you would get this error.
The first time the VI runs and you put it in the subpanel. Simply removing it from the subpanel will not cause the VI to stop running. So, if you start it running somewhere else, or the VI is set to run when opened, you'll get an error everytime you try to invoke the Run Method.
10-12-2011 11:53 AM
Matthew, the vi is not running before it goes to the switcher. It errors even at the first loading into the subpanel.
10-12-2011 12:01 PM
You may need to post an example that demonstrates your problem.
What are you doing with the subPanel before your while loop. You cut off the code that is there. Also note that if an error occurs before the while loop, the error handler doesn't clear the error, and you will have an error for each while loop iteration.