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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean refnum and property nodes

Solved!
Go to solution

Hi guys,

 

I've got a weird issue where if I create a property node and connect it to the refnum of a boolean I'm using in my subvi it comes up with variant as the data type.

 

Now normally I know that means that the boolean control is set to a latch rather than a switch state. However, even when I configure the refnum of the switch on the SubVI to 'Switch When Pressed' it still maintains a variant data type.

 

So bascially what i'm asking is, Is there any way to get the boolean data mode back when using these property nodes?

 

The main aim of this code is to be able to have a 'Stop Execution' button on the front panel and have that terminate the SubVI that will be running at the time and return to the main program no matter when that button is pressed.

 

The attached VIs are written in Labview 2012.

 

Cheers guys.

Download All
0 Kudos
Message 1 of 3
(6,512 Views)
Solution
Accepted by topic author WhtKnight

Hi,

 

Attached screen shot to include data type in the reference control of the SubVI.

 

You might have noticed a red dot on the subVI Boolean reference control Input node in the Main VI.

 

Also attached are the sub VI.

 

Hope this helps.

 

 

Download All
Message 2 of 3
(6,501 Views)

Thank you for the help there mate.

 

As it turned out I'd come across the solution myself shortly after posting but hopefully that will push anyone else in the right direction should they get stuck similarly 🙂

0 Kudos
Message 3 of 3
(6,478 Views)