LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke Node - Make current values default

I have an issue similar to many postings regarding the use of an invoke node to set control values and then to make those values default in that I get an error message: "Error 1000 ( The VI is not in a state compatible with this operation)."

The catch is that it is not all the time.

I am trying to set up a configuration utility which allows configuration or modification of settings of channels and serial ports. This top level VI pulls values from a configuration file using a mid-level VI which, in addition to loading the configuration file, also calls a further sub VI which initialises and sets as default front panel objects on a number of VI's using Invoke Nodes. Thus there is a heirachy of three VI's
with the lowest level VI doing the Invoking.

The only time I get the Error 1000 is when I try to run everything from the top level VI. From any lower level the VI's run with no problems and the defaults are set as desired.

Any suggestions as to the origin of the problem?

Ross.
0 Kudos
Message 1 of 3
(3,063 Views)
The answer to this question is listed in the labview FAQ created by Alexander C. Le Dain, the part which interests you is http://www.icon-tech.com.au/faq_viserver.html#InappropriateState
Hope this makes things look clear
Message 2 of 3
(3,063 Views)
To complement the other answer that explains why it not always works, I would again and again stress that !! make current values default !! is not the way to go when you want initial values to be changed.
For changing startup values you should use .ini files !
greetings from the Netherlands
Message 3 of 3
(3,063 Views)