I have a subVI which outputs data to an indicator on my mainVI. When the subVI doesn't return a value, the mainVI reads the connector as zero. Is there anyway I can config my subVI to remove the connector when no value is returned?
So how do you actually know if the return value is invalid? Perhaps infinity? If infinity, use Shane's idea of NaN. If not, put the condition of the return value into the CASE statement.
Sarah, Even if you configure your subVI another way (remove connector/wire??), you will still probably read Zero for a "No Value Received" on your main VI indicator. You also probably don't really want to remove your connector/wire, but you may want to display a better value than Zero if no data is received. On your main.VI, I'd consider a simple Select.vi from the Comparison palette. Wire in a compare for Zero values, and output either the real value if >0 or "". Good Luck, Doug
What do you mean when you say that the sub-vi doesn't return a value? It alays has to return something. In your sub-vi if you don't want to send a value out try setting the output to a value that you wouldn't otherwise get (like a negative number, or a really high number). Then check for that in your main vi and update your indicator based on that.