10-23-2014 09:40 PM
There is an Error 10000 happened at invoke node in one of my subvi. Please see attached snapshot of the error message.
This program(VI) has run for one month, and yesterday this error happened first time. After I stopped the VI, and ran it again, there was no error anymore.
Can anybody tell me possible causes? Thanks.
WT
LV2013SP1
10-23-2014 10:39 PM
This error generally happens when you try to run a vi which already running or it has a broken arrow. Can you please attach the VI in 2011 version.
10-23-2014 11:15 PM - edited 10-23-2014 11:42 PM
Here it is in 2011 version.
It is a subvi in My main VI. They are running for more than one month. This is the first time coming out error.
BTW : this sub vi is called by Main VI in sevaral different places but it should be called once at one moment.
10-23-2014 11:29 PM
As said if the VI is already running/broken this error occurs. To avoid this you can check the state of the VI by using the Property node "Execution>State>Idle" and Run the VI only if it is idle, else do other operation accordingly.
10-23-2014 11:50 PM - edited 10-23-2014 11:52 PM
Thanks. But, I didn't get what you said.
I am using "Call_Subvi_Do(variant).vi " to open and run another VI. Which one I should check the state of by using the Property node "Execution>State>Idle", "Call_Subvi_Do(variant).vi" OR the VI called by Call_Subvi_Do(variant).vi? By the way, the error is promted happening at the Invoke node in "Call_Subvi_Do(variant).vi" .
10-23-2014 11:55 PM
@weitong wrote:
Thanks. But, I didn't get what you said.
I am using "Call_Subvi_Do(variant).vi " to open and run another VI. Which one I should check the state of by using the Property node "Execution>State>Idle", "Call_Subvi_Do(variant).vi" OR the VI called by Call_Subvi_Do(variant).vi? By the way, the error is promted happening at the Invoke node in "Call_Subvi_Do(variant).vi" .
Yes on the top its happens in the sub VI but when you debugg the sub VI you may find that error occuring at the onvoke node "Run VI". Check the attached VI with added check for the state of the VI.
10-24-2014 01:46 AM
Thanks a lot.
Actually, I had the kind of check before calling the "Call_Subvi_Do(variant).vi" Please see attached snapshots.