LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: type specifier VI refnum

Solved!
Go to solution

I want to create some scripting tools to automatically create wrappers for existing class methods to call the method dynamically without the need to have a dependency to the class.

 

Something like this:

Example.png

 

but i'm having issues in generating the type specifier VI refnum.

If i create a dummy vi containg this code manually, and traverse the block diagram, it almost seems like the object doesn't fit in anywhere in the VI server model.

The classname is "ControlReferenceConstant" 

 

I tried numerous ways of generating said reference, but each time it tries to put an actual static VI reference to the VI, or throw some obscure error.

 

Anyone any ideas on generating this type reference?

0 Kudos
Message 1 of 3
(1,736 Views)
Solution
Accepted by topic author Jorn_Deruyck

The only thing I can think of is to create Static VI Reference, then from it, create a constant.vi spec.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 3
(1,701 Views)

Thanks Paul!

Seems to do exactly what i want!

0 Kudos
Message 3 of 3
(1,692 Views)