12-12-2016 07:20 AM
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:
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?
Solved! Go to Solution.
12-12-2016 11:49 AM
The only thing I can think of is to create Static VI Reference, then from it, create a constant.
12-12-2016 01:03 PM
Thanks Paul!
Seems to do exactly what i want!
03-20-2023 03:19 AM
I can't found that "StatVIRef" icon. Could you tell where is it?
Thanks a lot.
03-21-2023 03:54 AM
@daniel.liu- wrote:
I can't found that "StatVIRef" icon. Could you tell where is it?
The fact that you don't know that it's a property node or what a snippet is is an indication that perhaps playing with LV scripting is not for you at this point, as it requires both understanding how to write LV code and understanding how the LV code itself is built. What are you actually trying to do?