LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI scripting automatic Refnum specifier

Solved!
Go to solution

I am creating an VI scripting subvi, but I can't create and use the created subvi in general cases, because it has specific Refnum type. 

Is there one general Refnum type or a way how to implement automatic type specifier in subVI input?

For example (attached photos), I have a subVI with Generic VI Reference, but if I want to use the subVI function in Flat Sequence Structure then I have to have a subVI with different Refnum type (Flat Sequence Refnum). 

 

Download All
0 Kudos
Message 1 of 2
(2,346 Views)
Solution
Accepted by topic author chikenene

The LabVIEW object hierarchy is not fully hierarchical. VI and application refnums existed before there was anything like a fully designed object hierarchy in the LabVIEW interface. As such they don't really fit in the normal object hierarchy but are distinct classes besides the LabVIEW object hierarchy. Therefore there is no common ancestor that could serve as class parent for both VI and application refnums and any other object refnums in LabVIEW. Same about other types of refnums like file IO, VISA, DAQmx, etc. These are all distinct refnums that have no common ancestor in the LabVIEW object hierarchy.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,335 Views)