LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to script event selection for Register Event Callback node ?

Hello,


I'm trying to find a way to programmatically wrap some ActiveX event registration... using VI scripting.


I'm stuck with a generic GrowableFunction (Generic » GObject » Node » GrowableFunction » GrowableFunction). When just getting AllObjs[] from Diagram, this is the type of reference I get for an already existing Register Evetn Callback node on the diagram. I didn't find a way to use this (I guess) too generic level to select a event to register.

 

snippet.png

 

The REG_EVT_CLLBCK.vi diagram looks like this:
snippet_REG_EVT_CLLBCK.png

 
I've seen that under GrowableFunction, you can find ObjectFunction and then Contructor, Property, Invoke.
Using theses Property and Invoke class, I'm able to select a property or a method of a already existing node using sripting (you need to allow alternate names).

 

snippet_PropertyNode.png

 
But I do not manage to get an enought specific class in VI server for the Register Event Callback node.


Is there a trick to select the event to register using VI scripting ?
Or did I reach a kind of dead end ?

 

Thanks in advance for your help.

0 Kudos
Message 1 of 3
(106 Views)

"GrowableFunction" objects have a "Style" property.  In this case, the style is "Register Event Callback".

My guess is that other particulars are stored in tags of the object; but I couldn't find them.

0 Kudos
Message 2 of 3
(80 Views)

My other guess is that it's an unexposed property.

An example of that is the bezel color on classic controls.

paul_a_cardinale_0-1748102871827.png

You can change the color with the "Set Color" tool, but it's not accessible programmatically; not even with this:

paul_a_cardinale_1-1748103053308.png (I know, I tried all 4,294,967,295 index values.)

0 Kudos
Message 3 of 3
(46 Views)