Must have been discussed a zillion times, but just in case, there it goes:
what's wrong with this picture?
apparently nothing. If I grab the function and move it:
Note that LV must have "computed" something here to reroute the wires, etc.
But wait, what happens if I grab the wire and move it?
Oops! I did not connect the output of the function to the indicator. Instead, I inadvertently connected the input.
Needless to say, this is a F-ing nightmare to debug... unless you think of verifying that the value before the function and after the function actually gets incremented. Which you will, eventually, but not until after having wasted a lot of time thinking of all other possibilities elsewhere in the code.
Bottom line (this is only an example I just encountered for the umpteenth time a minute ago), LV does not provide much in terms of warning for this kind of potentially very damaging error. This is very much related to the discussion I started here with very limited success (man, am I an upbeat person!).
Suggestion: not only allow to define VI outputs as REQUIRED but also add warnings when a function that has its only or most important output(s) unconnected.
And if not everybody is interested in this kind of sanity check (I am talking about functions), you could offer this "warning" as an option (in a warning definition panel in the Preferences).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.