01-01-2019 09:50 PM
Hi
I am running a vi and called sub-vi,it can open and do something,but when i quit the sub-vi the was a fault ,how to do with this?
Is the code is wrong?
Please someone help
Solved! Go to Solution.
01-01-2019 10:04 PM
Attach the actual VI's, in English. It looks like there is more to your subVI then your partial screenshot is showing. The error 1039 says you aborted your VI. Is that that what you did?
01-01-2019 10:09 PM
The sub-vi is to sending the parameter to PLC via OPC ,after changed i click the quit button the sub-vi close the front panel,but in the main vi is the code right?
Or what shold i change?
01-01-2019 10:10 PM
Here is the VI
01-01-2019 10:17 PM
No. You should not hit the "quit" button in the subVI. That shouldn't even be showing in a real application. A long time ago in the forums, some one said "using the abort button to stop a VI is like stopping your car by hitting a tree, it will stop, but there will be consequences".
Why do you have an infinite while loop in that subVI? I don't know what your boolean buttons are supposed to do since you didn't translate your VI to English. You should design the subVI so that when the correct action is taken, it stop the loop and allow the subVI to end naturally.
01-01-2019 11:01 PM
oK,I found the problem,the sub-vi did not fully closed. NOw it works
Thanks for the replys