LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing boolean values from a cluster to another VI

Solved!
Go to solution

Hello

 

I am struggling with the enclosed VI.

 

I am wanting a VI to perform a calibration when the 'Calibrate' button in MainVI is pressed. A calibration will consist of either:
1) a 'Set' procedure; or
2) a 'Measured' procedure,
3) or both.
Which of these are performed will depend upon which booleans have been set to TRUE in the 'Ranges' cluster in MainVI.

 

When the 'Calibrate' button is pressed I want the current Boolean values in the Ranges cluster in MainVI to be passed over to the Ranges cluster in CalibrateVI. CalibrateVI will then look at these values and will perform the procedures that have been set to true.

 

I've had an attempt with the attached VIs (stripped down to the relevant parts) but am not getting the behaviour I require. For example:

 

1) When I first run MainVI with 'Set' already true in MainVi and

'false' in Calibrate.vi, then pressing the Calibrate button does not

put 'Set' to true in Calibrate.vi.

2) When I first run MainVi with 'Set' false in both MainVI and

calibrate.vi, then by making 'Set' true in MainVI and pressing the

Calibrate button, then 'Set' become true in CalibrateVI.

3) When I press the Calibrate button again (i.e. with Set being true in

MainVI and true in CalibateVI), then Set in CalibrateVI is made false.


I would be grateful if anyone could advise me on what I'm doing wrong and how to get the behaviour I'm looking for.

 

Thanks

 

Ron

Download All
0 Kudos
Message 1 of 3
(2,355 Views)
Solution
Accepted by topic author rw2018

The feedback node you are using does not have an initial value; if you click the Set button before you run the VI, the feedback node will output default values (False in this case).  Here is a way to set the initial state of the feedback node:

feedback_node.png

Unless you want other things to happen when you change the value of the Ranges cluster, the best thing to do is read the Ranges cluster directly:

read_ranges_cluster.png

0 Kudos
Message 2 of 3
(2,342 Views)

Hello Smoot

 

Thank you very much for your reply. It solved my problem.

 

Ron

0 Kudos
Message 3 of 3
(2,307 Views)