LabVIEW Public Beta Program in 2025

cancel
Showing results for 
Search instead for 
Did you mean: 

[New Feature] Preserve Values by Default When Placing Diagram Disable Structures

In LabVIEW 2025 Q3, when placing a Diagram Disable Structure to enclose a section of code, LabVIEW will match output tunnels with input tunnels to wire values through in the Enabled frame by default. If LabVIEW is not able to find the source for a refnum or LabVIEW class output tunnel, the tunnel will not be configured with “Use Default if Unwired.”

 

[Idea submitted by NI Discussion Forums member Jim_Kring.]


Christina Rogers
Principal Product Owner, LabVIEW R&D
Message 1 of 2
(826 Views)

Hi Christina,

 

After testing a bit this new feature, I noticed some unexpected behaviors (at least to me) with the automatic finding of matching inputs.

 

 

1. It does not seem to work when enclosing certain structure types:

 

Example by disabling a Case Structure:

raphschru_1-1761309761007.pngraphschru_3-1761310386128.png

Here it found none of the matching inputs.

It does the same when enclosing another Diagram Disable Structure, a Type Specialization Structure or a Multi-Frame Stacked Sequence Structure.

I would expect it to work regardless of the code that needs to be disabled.

 

 

2. Another issue is with multiple inputs/outputs of the same data type:

 

Example with two I32 inputs and two I32 outputs:

raphschru_5-1761311466521.pngraphschru_6-1761311487554.png

Here it matched all I32 outputs to a single I32 input.

I would expect it to:

 - either be "smart" and find matching sources based on tunnel vertical position (or whatever other logic);

 - or decide that it cannot make a choice and let the user do the wiring (and especially NOT marking the tunnels as "Use Default If Unwired").

 

 

3. A last smaller issue is the fact that the tunnels are marked "Use Default If Unwired" even if a matching input is found. I would prefer the IDE to use this flag as little as possible. If for example we add a frame later, we may forget to wire them through.

 

 

Attached is a VI that demonstrates these behaviors.

 

Regards,

Raphaël.

Message 2 of 2
(16 Views)