LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Find Unwired Terminals?

Solved!
Go to solution

Does anyone know if there's a property node or something else that corresponds to this warning?

 

CaseyM_0-1601499406195.png

 

I'd like to be able to script something that finds all the unwired indicators in a project.

CLA CLED AF Guild
0 Kudos
Message 1 of 3
(2,702 Views)
Solution
Accepted by topic author CaseyM

Hi,

 

I found the question interesting, so I thought I'd give it a go. Does the attached VI do what you want?

 

You could probably leave out the check for the valid wire refnum, because the ConnectedWire.IsBroken property yields error 1054 if there is no wire.

If you want to get a list of all VIs that a top-level VI is depending on, try the invoke node "GetVIDependencies".

 

Hope this helps.

 

 

PS: As you were asking for "indicators", there is a Boolean property for the object type "Control" named "Indicator", that is true, if the Front Panel object is an indicator.

 

PPS: VI is version 2015.

Message 2 of 3
(2,655 Views)

Yeah, this seems to work pretty well - thanks! If anyone is interested in taking this a step further, I also want to trace back wires on indicators that are connected but know if they originate from a "Use Default If Unwired" node. Big picture, I want a way to test if an indicator is unwired (check!) or comes from a place where people didn't wire something across properly (e.g. in a disabled diagram structure where errors that are normally wired across get changed to defaults if you're not careful).

CLA CLED AF Guild
0 Kudos
Message 3 of 3
(2,635 Views)