LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Required input Bug

When switching an Indicator connected to the Connector Pane to "Control", the new connected Control is not flagged as "Required", even if this is the default option.

 

Tested in LV 2013 SP1 64 bits

0 Kudos
Message 1 of 9
(3,409 Views)

If the indicator was not listed as required, why would changing it to a control suddenly make it required?  It is not a new connector being made, you are just changing the direction of an existing connector.

0 Kudos
Message 2 of 9
(3,395 Views)

That's one point of view.

Another is: I deleted an output (which we cannot -yet- flag as required) and I created a new input.

Hence I'd like the rule for new input to apply.

0 Kudos
Message 3 of 9
(3,346 Views)

In most of the cases you will rewire the new control to the connector pane, if the indicator was wired, as usual, on the right side of the connector pane. In this case the rule will apply.

0 Kudos
Message 4 of 9
(3,320 Views)

Why would an output be required?  The subVI can function perfectly without any outputs being read.  Have you seen somewhere that claims they're adding the option to make outputs required?

0 Kudos
Message 5 of 9
(3,306 Views)

No.  Outputs cannot be set to be required at this point of time.  X's message as the "yet" hyperlinked to an idea on the idea exchange discussing the possibility of making that an option.  See http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-required-outputs-in-VIs/idi-p/1899325

0 Kudos
Message 6 of 9
(3,302 Views)

@chembo wrote:

In most of the cases you will rewire the new control to the connector pane, if the indicator was wired, as usual, on the right side of the connector pane. In this case the rule will apply.


In the case that triggered this report, I had copied an Indicator from another VI and connected it "to the left" of the connector pane. I noticed the spaghetti plate of wires in the Help window and then changed the Indicator into a Control.

Maybe that clarifies why the lack of conversion to a "Required" input struck me as, if not a bug, a possible departure from the expectation of a fringe population (of which I might well be the only representative).

0 Kudos
Message 7 of 9
(3,297 Views)

@X. wrote:

@chembo wrote:

In most of the cases you will rewire the new control to the connector pane, if the indicator was wired, as usual, on the right side of the connector pane. In this case the rule will apply.


In the case that triggered this report, I had copied an Indicator from another VI and connected it "to the left" of the connector pane. I noticed the spaghetti plate of wires in the Help window and then changed the Indicator into a Control.

Maybe that clarifies why the lack of conversion to a "Required" input struck me as, if not a bug, a possible departure from the expectation of a fringe population (of which I might well be the only representative).


I would say that, in the technical sense, it was expected behavior.  The default trigger, I imagine, is the wiring of the connector; therefore, the default was applied when you wired the connector as an output.  Changing the indicator to a control didn't trigger it because you didn't rewire.

 

Now whether or not this is a LOGICAL expected behavior I think is open to debate.  And I have no idea how easy it would be to fix.  I mean the fix is probably easy; chasing down all the ramifications of the fix may not be.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 9
(3,282 Views)

I would say this is expected, sorry.

 

Also for an interesting read required outputs is sorta a thing, or at least a bug once existed that allowed it.

 

http://lavag.org/topic/6271-whats-wrong-with-this-picture/

 

Sorry so much LAVA 1.0 content was lost but I think it is still worth a quick read.

 

XNodes do allow to visually look like an output is required, but functionaly it doesn't need to be.

0 Kudos
Message 9 of 9
(3,237 Views)