LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI terminals correspondence

Hi, all.

It's the first time I use subVIs. I read some tutorials about it before addressing any question, I made the links between the connector pane and controls/indicators.. etc.
When I run the application , doesn't do what it should.
I don't even know how to fix it, because I don;t understand how the connections are made with the subVI. I don;t understand how can I know that a terminal of the connector pane that I linked with a , say, graph indicator in the front panel , is linked with the certain graph indicator in the VI application which is now a subVI. So, I don;t see the correspondance in the identification of the connector pane's terminals. For instance,I have 2 graph indicators in the front panel- linking them with 2 terminals of the connector pane, how do I know the connection are not after all crossed if I would expand the subVI and thus have all his elements?
Can one explain me a bit please?
Thank you,
 
Dana
0 Kudos
Message 1 of 13
(3,223 Views)

It's not real clear what you are doing.  Did you give the 2 graph indicators different names?  What do you mean by "expand the subVI and thus have all its elements"?  Is the subVI on the block diagram of the main VI with a yellow background and its settings are "View as icon" unchecked?

Perhaps you can post a simple example of your main and subVI's?

0 Kudos
Message 2 of 13
(3,214 Views)

Hi Dana,

you can see your connections in the context help. See the attached picture.

Mike



Message Edited by MikeS81 on 03-06-2008 07:31 AM
0 Kudos
Message 3 of 13
(3,199 Views)
Mike,

Let me try to be more explicit about my problem. There are in fact 2 applications: Application 1 - the wrapper and Application 2 - the subVI.
Application 2 can be regarded from 2 points of view - as the original application (P1) and as the subVI , within the wrapper(P2).
Now , in the wrapper I set some connections with the P2 (and P1, implicitly). I expect when I prompt over the connector pane, just like for a regular VI or tool,  to know the identity of the terminals so that I make a correct linkage betwwen the connector pane and the controls/indicator in the wrapper.
As I exemplified in the post, I may have two graph indicators in the P1 , and once I manage the wrapper and the subVI, I cannot know if the links are correct and that in fact I show in one graph indicator of the wrapper the result coming from the other graph indicator of the P1.

I hope I was a bit more clear...

Thank you, Mike.
Dana
0 Kudos
Message 4 of 13
(3,178 Views)
Hi Dana,

when you move the wiring tool over a connector pane you will see a tool strip showing the name of the connector.
In the context help you will see the vi and all of it's connectors - the one you hover the mouse over will be blinking...

What else do you need to know?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 13
(3,175 Views)
GerdW,

I attached the cpitures I get.
In the subvi_blockdiagram, I hold the mouse above the subVI icon , you can see what my context help tells me.
In the subvi_fronpanel, I hold the mouse above the subVI icon from the upper right of the window, you can see what my context help tells me.
No information about the name of the termanals as I've seen in your picture.
Is it my Labview that lacks something or me not doing something right? I keep wandering around to get a clue , but useless.

All the best,
Dana
Download All
0 Kudos
Message 6 of 13
(3,167 Views)
So what I did was:
1. Having a working application A0, I created in a new VI, A1.
2. From Functions, I chose ' Select a VI' , and selected A0.
3. In the front panel of A1, I select "Show connector", choose Pattern, and then add indicators and controls as many and of the type I have in the A0.
4. I now can do the wiring in the front panel, but neither here , nor in the block diagram I get no information on the identity of the terminals of the subVI in order to make a link without just guessing or assuming...

Does  this help for your diagnosis? Hope it can.

Dana
0 Kudos
Message 7 of 13
(3,165 Views)

Hi Dana,

i´m not really sure what you want. If you create a vi, place your controls on it and link them to the connector pane. Therefore go to the front panel of this vi and select "Show connector". In the blockdiagram of this vi insert your code. Now save it and your sub vi is ready. To use it in another vi choose from the other vi the option "select a vi" to insert your subvi. If this has been done you should see all the connected terminals in your context help. Hope this helps.

Mike

Message 8 of 13
(3,162 Views)
Hi Dana,

it seems you're really a beginner in LabView!
So you should use the training material found on NI.com in section "Academic" - there are 3h and 6h courses (for free!) that explain really the basics of LabView.
And creating connectors/using subvis belongs to basics Smiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(3,159 Views)
Hello Mike, GerdW,

Thank very much for the help.
It was very confusing to me, because all the steps in the tutorials I understand them to be performed in the new VI where I am to use  subVI. Form such an understanding, nothing else can further make sense . Mike's post cast light that those steps have to be performed in the application that I will intend to use it as a subVI.
Sorry for such a cumbersome thinking. But I do think that the LV tutorials are not so good, one actually uses them good after (s)he gets a bit of experience.  And this should not be the definition of a tutorial.. I read a couple of pages related to subVIs and the detail I was mising could not be really guessed from that context (or let I make this only my problem)Nonetheless, the forum is very good.

All the best!
Dana
0 Kudos
Message 10 of 13
(3,150 Views)