LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create polymorphic vi with different connector pane pattern?

Hai all,
i am trying to create a polyorphic vi with different connector pattern as we see in general built-in DAQmx polymorphic VIs.
First i created two sub vis with the same no of inputs and outputs and added to the polymorphic vi and then i created a vi with different no of input and output  and added to the polymorphic vi. i got the error that the vis in the polymorphic vi should contain the same no of inputs and outputs. if that is the case how to create a polymorphic like the vis in the DAQmx functions palette.
 
 
Regards,
sathishkumar.s
0 Kudos
Message 1 of 6
(3,642 Views)
The connector pane must have the same number of connectors, but you are not obliged to use them all. That's what is done in the DAQmx vis. The overall pattern is always the same (unless I missed something !..), but depending on the instance used, the number of active inputs is different. 
Chilly Charly    (aka CC)
Message 2 of 6
(3,637 Views)
hello chilly charly,
thanks for your idea. i got it. ur reply cleared my doubt. but i don't know how to make some input terminals inactive.
please reply reg this.
 
with regards,
sathishkumar.s
0 Kudos
Message 3 of 6
(3,623 Views)
You don't have to do anything special for the "inactive" terminals. Just connect to the ones you need and leave the rest unwired. The unwired terminals in that instance of the polyVI will be ignored.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 4 of 6
(3,611 Views)


sathishkumar a écrit: ...i don't know how to make some input terminals inactive...

In addition to Ed comments, see the attached example...

Chilly Charly    (aka CC)
0 Kudos
Message 5 of 6
(3,608 Views)

Hi,

Would like to add to what Ed has said and CC has demonstrated.

Just add those extra terminals in whichever polymorph.VI that thas a deficit of terminals, name these terminals as Dummy and leave them unconnected.

regards

Dev

 

0 Kudos
Message 6 of 6
(3,595 Views)