Hello
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?
Thank you,
Vinay
Help on SubVI's
Started by
vinayk
, Oct 19 2007 03:22 PM
4 replies to this topic
#1
Posted 19 October 2007 - 03:22 PM
#2
Posted 19 October 2007 - 03:47 PM
QUOTE(vinayk @ Oct 18 2007, 04:01 PM)
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:
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
#3
Posted 19 October 2007 - 04:46 PM
I would strongly suggest you work through the getting started with LV before going much further. Creating and configuring a subVI is a critical part of any application and I'm sure that you will have follow up questions that may be answered just by taking an hour or two going through the beginner steps
#4
Posted 19 October 2007 - 07:05 PM
I have a better idea. Why doesn't someone start a wiki article that answers this question since it's been the 1000th time someone has asked this on the forums. We currently have a calling a VI category which has bits and pieces but no one comprehensive article. There realy is many ways to call a VI let us list the ways and what are the differences. An overview article is really necessary here.
#5
Posted 19 October 2007 - 09:51 PM
After refering to the LabView Help, I figured out that when I call a low priority VI from a high priority VI, the low prioirty VI's proirity rises to match that of the calling VI. By doing so my math tasks that were supposed to be running on the actual high priority VI were paused which does not serve my purpose. Any suggestions please...
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.
[attachment=7312:Main_VI_BD.JPG]
[attachment=7313:Sub_VI_BD.JPG]
[attachment=7314:Main_VI.JPG]
[attachment=7315:Sub_VI.JPG]
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.
[attachment=7312:Main_VI_BD.JPG]
[attachment=7313:Sub_VI_BD.JPG]
[attachment=7314:Main_VI.JPG]
[attachment=7315:Sub_VI.JPG]













