LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading Fp in background

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!

0 Kudos
Message 1 of 9
(3,617 Views)

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:

  • Look into using the event structure rather than a polling scheme.
  • Instead of using a string for your "Action" use an enum. 
  • Be careful about the Current VI's Path function. If you build your VI into an application the path that gets returned will have the application name appended to it. 
Message 2 of 9
(3,585 Views)

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 !

 

0 Kudos
Message 3 of 9
(3,568 Views)

Hi,

 Can u use the option subvi node set up and try, it may work but i am also not sure. 

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 4 of 9
(3,563 Views)
Hi ITA,
Check out the attachment and let me if this serves you.
Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 5 of 9
(3,552 Views)

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 

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
Download All
0 Kudos
Message 6 of 9
(3,539 Views)
here are the rest of the attachments.
Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
Download All
0 Kudos
Message 7 of 9
(3,538 Views)

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

0 Kudos
Message 8 of 9
(3,534 Views)

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. Smiley Wink

 

0 Kudos
Message 9 of 9
(3,507 Views)