10-19-2008 12:08 AM
Hi,
I am wishing to develop a menu driven Main.vi, which shall call several other programs, say A, B, C, D. The algorithm for all these Vis should run in background, while the front panel of only that vi (one at a time) whichever is called from menu of Main.vi should be visible to user, removing other FPs from memory.
The way I am doing this is attached here. I am not sure whether I am doing it correctly.....Or are there any better ways to achieve this?
Second problem I am facing is when A is open and I try to open B from Main.vi then; A is going backward. I have tried with subpanel option, but in that case close Fp option is not working........can any one suggest ways to solve this problem? You may modify and repost my code (Ver. 7.1 if not then .jpg )
Please rename the attached file to .rar and then extract if .zip is not working.
Thanks!
10-19-2008 11:56 AM
You're mixing and matching two different concepts: static loading and dynamic loading. It's not clear which one you're trying to do, but I'm guessing dynamic loading. In that case you should not have the "A", "B", etc. VIs on the block diagram of the main VI. Doing so causes them to "run" as soon as the main VI starts.
Suggestions:
10-20-2008 02:48 AM
Hi Smercurio,
THanks for your suggesions.
In fact I want to have a dynamic loading scenario. But when I used it, I was getting errors from property node and was not able to do Open Fp and Close Fp functions.
So the code I have posted reflects static loading only. Could you/ anyone be in position to modify attched code for dynamic loading ?
Thanks !
10-20-2008 03:21 AM
Hi,
Can u use the option subvi node set up and try, it may work but i am also not sure.
10-20-2008 04:31 AM
10-20-2008 06:54 AM
Hi ITA,
I have attached the jpeg files. I dont know the features of 7.1 you can follow the steps and let me know if it works.
There are 4 jpeg.
i am attaching 2 files in this post and rest will be in the next post
Regards
Akshath
10-20-2008 06:55 AM
10-20-2008 07:07 AM
Hello!
My suggestion about menu application using VI Server may be interesting for you:
http://www.labviewtutorial.eu/viewtopic.php?f=34&t=544
Regards, Eugen
10-20-2008 09:56 AM
ITA wrote:Hi Smercurio,
THanks for your suggesions.
In fact I want to have a dynamic loading scenario. But when I used it, I was getting errors from property node and was not able to do Open Fp and Close Fp functions.
What errors? What were the error codes?
So the code I have posted reflects static loading only. Could you/ anyone be in position to modify attched code for dynamic loading ?
No, what you posted was a combination of static and dynamic loading. That's the problem. ![]()