09-06-2018 04:05 AM
Dear Community,
I am going through a sample cldr exam and I have encountered the following question that I don't understand (see attached image). The answer to that question is a. Why is that so? The properties of the VI are set "Show front panel when called = True". That means, that when the VI runs, the front panel would open thus be loaded into memory. This is contrary to the answer.
Thanks in advance.
Solved! Go to Solution.
09-06-2018 06:24 AM
@labviewette wrote:
The properties of the VI are set "Show front panel when called = True". That means, that when the VI runs, the front panel would open thus be loaded into memory.
Not quite. The VI is being loaded and then told to run. That is different than calling the VI. If you use the Call By Reference, then the front panel is loaded because it is just a dynamic subVI. But the Run Method loads that VI as if it is a top level VI. Just use the Call Chain to look at the value in the dynamically called VI and you will see this.
09-14-2018 04:32 PM
As well as what crossrulz said, look at the help for the run vi method. It intentionally ignores some front panel properties including....FP.Show when called. The method does not load the fp.
Luckily, run vi method is improved with the asynchronous call by reference node in later LabVIEW versions (which have a different boolean constant look.)