Certification

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

CLD-recitification: understanding a sample question

Solved!
Go to solution

CLD-recitification: understanding a sample question

 

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.

 

0 Kudos
Message 1 of 3
(510 Views)
Solution
Accepted by topic author labviewette
09-07-2018 01:52 AM

Re: CLD-recitification: understanding a sample question


@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.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 2 of 3
(497 Views)
Highlighted

Re: CLD-recitification: understanding a sample question

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.)

0 Kudos
Message 3 of 3
(446 Views)