LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add the read data port to the VI icon?

I am working on an existing driver (i'll call it masterVI). The driver calls a particular subVI (and this one is shown as an icon in the block diagram of the masterVI). I needed to read some more data so I made the changes to this subVI. And this subVI is working fine after all the changes.

Now the problem is the following. I would expect that the icon of the subVI should now show one more output terminal (for the "new" data that I am reading), but this is not happening, i.e. the icon is not updated in the master file. So I am not able to access, in the master file, the "new" data sequences (for which I made modifications).

I have tried various combinations to make it work, with no success! e.g. Tried saving the new subVI by a different name & than import it into the masterVI!
Any help will be greatly appreciated!
Regards,
Ashutosh.
0 Kudos
Message 1 of 2
(2,895 Views)
Did you add another connector to the pane of your subVI?
This is not something that would happen automatically, but you would have to do make this change manually in your subVI.
 
1.  Open the front panel of the subVI.
2.  Right click the icon in the upper right corner and click "Show Connector Ppane".
3.  Click an open white block, then click the indicator of the new data you want to send out.  (If you were putting new data into the subVI, then it would be a control you would click on.)
4.  Save the VI.
5.  Open the block diagram of the master VI.  The icon should show the new connector.  If the icon is grayed out, the change on the connector was more substantial.  It will then be necessary to right click the grayed out icon and click "Relink to SubVI".
 
 
 
Message 2 of 2
(2,892 Views)