LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get connector pane output programatically

Hii Every one,

 

Actaully in my application i need to know in a sub vi connector pane what are the terminals connected to it.

 

for example simple addition.vi with 2 i/ps and 1 output..

 

i will connect the 3 variables in the connetor pane......

 

then from another vi i need to know what data is available in that addition.vi connectpr pane?? how to get it?? can any 1 explain me.... 

0 Kudos
Message 1 of 10
(4,115 Views)

Hi Karthikey...,

what do you mean with "... what are the terminals connected to it."? Do you mean the type? Can you explain a bit more about what you try to do?

Which type do you use as input (Variant)?

 

Mike

0 Kudos
Message 2 of 10
(4,111 Views)

Hii Mike

 

In a sub vi i connect different i/p's and o/p's like string,number(like I 32,double)etc....

 

Now i want to know what r the i/ps and o/ps connected in the connector pane with data types for each........ 

0 Kudos
Message 3 of 10
(4,107 Views)

Hi Karthikey...,

so you have lots of inputs and outputs with different types and you want to know which are connected?

This thread discribes how you can check if an input is connected or not:

http://forums.ni.com/ni/board/message?board.id=170&thread.id=406234&jump=true

 

You can also use variant inputs, or an array of variants and use the "openg" function to get the connected type.

http://wiki.openg.org/Get_TDEnum_from_Data

 

Mike

Message Edited by MikeS81 on 05-07-2009 08:53 AM
0 Kudos
Message 4 of 10
(4,103 Views)
sorry mike i cann't understand can u explain me clearlyy
0 Kudos
Message 5 of 10
(4,097 Views)

Hi Karthikey...,

which part do you mean? Is it correct that you have different inputs and you want to know which of them is connected? Can you explain why you need it? Maybe a polymorphic vi is the better solution for you.

 

Mike

0 Kudos
Message 6 of 10
(4,084 Views)
ok using polymprphic vi how to get the solution for this???
0 Kudos
Message 7 of 10
(4,081 Views)
One way to do it, is to go to help in the toolbar. Then use "search the Labview help", or "find Examples" option. Just seach for polymorphic


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 8 of 10
(4,079 Views)

Hi Karthikey...,

navigate to "File -> New...". There you can select a polymorphic vi. Add all the your different vis and that's it.

 

Mike

0 Kudos
Message 9 of 10
(4,071 Views)

Maybe it is rather leading to the desired result if you explain why you need to know this programmatically.

I asume that you are rather new to LabVIEW and miss some of the very basics of this language. I encountered such questions like yours only from programmers coming from C++/C# or other OOP-languages.....

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 10 of 10
(4,068 Views)