LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Scripting: Recognise type of function in BD

Solved!
Go to solution
Highlighted

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
(71 Views)
Solution
Accepted by topic author _Y_
04-13-2019 09:48 PM

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

DNatt, LV R&D
0 Kudos
Message 2 of 3
(51 Views)

@Darren wrote:

Read the "Style"...


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

Well, my English is not perfect Smiley Wink

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