From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a VI By Reference

SercoSteveB
Active Participant

Consider the VI BooleanPassThroughValue.vi, below.  If the Default Value of 'Boolean Value In' is TRUE and the value of 'Boolean Value In' set to FALSE before each call.  What are the values of Boolean Value Out after BooleanPassThroughValue.vi is called using Method 1 and Method 2?

 

BooleanPassThroughValue.vi

BooleanPassThroughValue.png

 

NOTE:  Assume all paths and typedefs are correct.

 

Method 1:

BooleanPassThroughValue Call 1.png

 

Method 2:

BooleanPassThroughValue Call 2.png

 

a) After the Method 1 call Boolean Value Out = FALSE, After the Method 2 call Boolean Value Out = FALSE

b) After the Method 1 call Boolean Value Out = FALSE, After the Method 2 call Boolean Value Out = TRUE

c) After the Method 1 call Boolean Value Out = TRUE, After the Method 2 call Boolean Value Out = FALSE

d) After the Method 1 call Boolean Value Out = TRUE, After the Method 2 call Boolean Value Out = TRUE

Comments