From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: Recognise type of function in BD

Solved!
Go to solution

My script should control if the wire is connected to particular function. The script works easy but... crazy.

 

When types of Owners (nodes connected to the wire) are controlled, the most specific obtainable type is "Function". But which Function is it? (I need Close Reference but the same can be questioned about any other function). The only way I found is comparing icons as shown in the  snippet. Isn't it little crazy?

 

There should be a better way but which?

 

190413.png

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 1 of 3
(2,227 Views)
Solution
Accepted by topic author _Y_

Read the "Style" property of the Function class. It will tell you the non-localized English name of the function... "Add", "Match Pattern", etc.

0 Kudos
Message 2 of 3
(2,207 Views)

@Darren wrote:

Read the "Style"...


Yes, indeed, thank you. I would never guess...

Well, my English is not perfect 😉

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 3 of 3
(2,193 Views)