LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Lars-Goran

Right-click option on error in terminal: Create > No Error Constant

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

An old topic but perhaps a new flavor.

I always set error in to required when connecting it to the lower left terminal on the connector pane.

By this I get rid of the so detested "(no error)" part of the control name, and it prevents you from being lazy and not connecting error in for situations where you think it's of no use, but you actually would be better off doing so. It also prevents an unconnected error thread passing through behind the icon, giving the impression that error in is connected when it's not (I've seen this once; quite a nasty bug).

In the few cases where I really don't want (or have) an error thread connected to the VI, I use a home made No Error Constant like this:

No error.PNG

So, I would like to have this Right-click option on the error in teminal to simplify this:

 

No Error Constant II.png

 

A big bonus if NI makes it a constant and uses my minimalistic artwork for the icon 😉 instead of inserting an error ring with 0: no error.

 

/Lars-Göran

6 Comments
Taki1999
Active Participant

I'm not really on board with creating another menu item for such a limited use case. I do like your artwork though. Perhaps a related idea would be to change the collapse behavior of the error constant so that error constants with no error collapse to your checkmark and error constants with an error collapse to an X.

AbandoningCausality
Member

You could probably do this with a plugin and a VI with a small icon

RavensFan
Knight of NI

Why is this necessary?  If you need a No Error going in, just don't wire anything.  Any VI should have been saved with the No Error set as the defaults for the Error In control.

Lars-Goran
Member

The reason is that I deliberatly always set  "eror in" to required on new VIs.  I just asked for an easy way to add a "no error" constant in the few cases were I don't want the VI to receive earlier errors.

Today I do this by adding a home made no error.vi just as can be seen in the picture.  It's icon is designed to be intuitive and to occupy a minimum of diagram space.

nanocyte
Active Participant
If you have the subVI, you can quick drop it or add it to your pallets. That should be pretty quick
Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.