LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i created boolean references in my main vi block diagram and copied them to my sub vi front panel. when wire my reference in my main vi to one the input node of the sub vi the wire is broken. the error says its a class conflict why?

i created boolean references in my main vi block diagram and copied them to my sub vi front panel. when wire my reference in my main vi to one the input node of the sub vi the wire is broken. the error says its a class conflict why?
0 Kudos
Message 1 of 5
(3,192 Views)
The easiest way to do this is to wire the references to a sequence structure. Then select the sequence structure and under "Edit" select create subvi. THis will create a subvi with the references connected and you will have the reference controls in the subvi. This could be happening because of the type of reference you created in the subvi. Try my shortcut and see if it works. hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 5
(3,192 Views)
Does the reference in the subVI say "Bool Refnum" on it or is it a "Control Refnum"? You also might try right clicking on the refnum in the subVI and selecting "Include Data Type". This will turn on or off the strictly typed reference property. That's where I ran into problems.

Rob
0 Kudos
Message 3 of 5
(3,192 Views)
when i selected the include data type control in my sub vi the wire in my sub vi is connected but the wire in my main vi is broken. if i dont select the include data type my main vi wire is connected and in my sub vi the wire is broken.
0 Kudos
Message 4 of 5
(3,192 Views)
Expanding and clarifying what BJD said;

After you create the temporary sub-VI that BJD mentioned, open its front panel and copy the reference control that LV created when it created the sub-VI.

This reference control will be correct class etc that you need. Use the control to replace the original control that you were attempting to wire up.

The technique of "create sub-VI...copy" always works for me.

There is one more thing that you should watch out for.
The mechanical action of the boolean can not be set for latch action when attempting to read the value using a value property node.

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(3,192 Views)