User | Kudos |
---|---|
4 | |
3 | |
2 | |
1 | |
1 |
This idea is for improving the connector pane to default to required inputs for terminals that use reference type data. So if I have a new blank subVI and I wire a VI reference to an input, this should be set to Required by default. I'd also suggest this be the same for a Create SubVI from selection. Obviously you could change it from required, because the developer may have some code in the VI to detect an invalid reference and do something specific. But in most cases if I do something like wire a Queue reference to an input, that input should be required.
One could make the argument that this idea could be done today, by making all inputs default to required, which I think goes too far. Many times I have code that detects unwired inputs (by looking at the default value for the control) and it shouldn't make an input required if it isn't really required. What I mean is in my work flow the majority of inputs should be recommended, but the majority of references (Queues, DVRs, Control References, VI References) should be required. There are a few data types like Classes that could be reference based or not, and I could see an argument for this being required, or recommended, and for these I don't really care how they behave. But for inputs that are clearly reference based I think it would help from making code that the developer mistakenly leaves recommended.
This could be an INI key in LabVIEW for those that don't want it, or for those that choose to make all inputs required.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.