LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What are the default values for "default if unwired"?


@paul_a_cardinale wrote:

I don't use such simplistic rules (e.g. "Always do this...", "Never do that.").


I fully agree, which is why I explicitly explained the logic behind this policy and refered to an exception.


___________________
Try to take over the world!
0 Kudos
Message 11 of 14
(1,188 Views)

@SnowMule wrote:

.................

The rare times I do that with a VI I put the default in ()'s in the control name, like the "Error In (No Error)" wire. :dunno


Save that (Default) for the Caption and keep the Label short and sweet your Block Diagrams will thank you and the help view will show the Captions if they exist.  (Also programatically settable at run-time just like the default value)

Example_VI.png


"Should be" isn't "Is" -Jay
Message 12 of 14
(1,185 Views)

Reminder: You still need to create the caption manually before Jeff's good idea will work.  If the caption has not been created, the property node will return error 1320.

 

Lynn

Message 13 of 14
(1,171 Views)

While we're talking about default values in parentheses, here are a couple of relevant ideas. If the second one is implemented, you would not need to play with either the caption or the label:

 

Get rid of the "(no error)" part of the error cluster

 

Show the default value of controls in subVIs which aren't required in the tip strip

 

 


___________________
Try to take over the world!
0 Kudos
Message 14 of 14
(1,159 Views)