Help on SubVI's
Posted 19 October 2007 - 03:22 PM
I have an application where when I push 'open' button on the main application screen, a window should pop up and when I click 'close' on the sub window it should close. I created and saved a VI for the sub window and when I try to add this VI to the main application block diagram by selecting the 'Select a VI...' from the right click menu bar, the icon does not show any terminals. I have gone through the 'Dialog Box Demo.vi' and 'Acquire-Analyze-Present.vi' examples which have similar pop up windows but the sub-vi icons look different and they have input and output terminals. I matched the file -> 'VI Properties' of my sub-vi exactly to the sub-vi's in the examples, but still no use. Please expalin what else am I missing here?
Posted 19 October 2007 - 03:47 PM
To change the Icon of a VI and/or add terminals, use right-click on the icon (upper right on the Front Panel).
... the icon does not show any terminals...
Then connect FP objects to the terminals on the connector where you want them, you might want to read some suggestions on how a good terminal layout should look like, but in general:
- inputs to the left
- outputs to the right
- make sure you select a connector pattern with some spare terminals, for future use
Posted 19 October 2007 - 04:46 PM
Posted 19 October 2007 - 07:05 PM
Posted 19 October 2007 - 09:51 PM
I created this simple example to better explain what I am doing. I set the main VI priority to Time-Critical and the Sub-VI priority to Background.