LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: assemble Variant defining connector pane

Solved!
Go to solution

There is Invoke Node Set connector pane. It modifies control (VI ref type). The node works well for setting connector pane of existing VI to control; i.e. connector pane is read from VI (as Variant) and set to control.

 

Untitled.gif 

 

Is there any way to assemble this Variant without involving any source VI?

May be there is a way for modifying this Variant?

 

 

 

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 1 of 6
(2,966 Views)

What do you mean by "involving any source VI"?

 

Look at what data is contained in that variant wire as an example for what it is looking for.  Then use variant functions to build it.  It might be clusters, it might be variant attributes.  It could be anything.

0 Kudos
Message 2 of 6
(2,936 Views)

Yes, it could be anything. See:

 

190304.gif

 

The Variant type is VI. Get VI Information receives this Variant and returns all info about terminals.

 

I need something opposite; i.e. I need to "wrap" array of variants (VI Terminal Types) in Variant of VI type.

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

Your best option may be to flatten-to-string, identify and replace the VI terminal types, and unflatten.

0 Kudos
Message 4 of 6
(2,906 Views)
Solution
Accepted by topic author _Y_

The following VI allows you to construct a VI data type (i.e. a conpane data type):

 

LabVIEW 20xx\vi.lib\Utility\Data Type\Set VI Information.vi

 

Note that this VI is not officially supported by NI.

Message 5 of 6
(2,898 Views)

Thank you Darren, it works well.

 

There are other problems with setting terminal pattern but I am not sure they are related to this VI. I shall ask more if not succeed on my own.

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 6 of 6
(2,865 Views)