08-24-2010 08:53 AM
OK, I am able to select the VIs from a main window of boolean controls like I wanted to. The issue I have now is that I am trying to make an application where I can select multiple VIs and then view them at the same time (not all of them). The way it is now, I can select one VI and its front panel (clone) goes to the front where I can no longer access the main window unless I close the front panel I just opened.
So could that be something in the VI properties or some other settings? Or is that something that should be expected from the program?
Also, If I have two different VIs that each have their own front panel I want to display, but both require eachother's block diagram to work correctly, would it just be a better idea to put both of those in one loop? It would be nice two have the following options:
Control A) run block diagram from both VIs but only display front panel 1
Control B) run block diagram from both VIs but only display front panel 2
I think that I did not initially take into consideration that not all of these VI's operate independently.
I know I have not posted any code, but it is really basic. A timed loop for each boolean control, which are each wired to a cased structure (true), which each contain a call to the respective sub vi.
08-24-2010 09:02 AM
Also, before I added a main set of controls for all the VIs, the VIs would just all run at the same time. Meaning an application that just has VIs all over the place. It was messy but It worked. Now that I seperated them this way, a few of the displays are not working correctly probably because it is only running one VI at a time or because the values in the variables are not being carried over.
08-24-2010 09:07 AM
SOunds like you need to make all of the vi's in the block diagrams reentrant. Not just the subvi level but the vi's that make up the subvi so that the code can be shared. I am not sure I am getting the whole picture of what you are doing. I am sure that it is simple while you are looking at it. You could also look into dynamically created vi's. This would do what you want as well.
08-24-2010 09:13 AM
I took care of the issue with the windows and can now open several front panels at the same time. I just need to make sure the value in the variables are being carried over. I will look at ALL the VIs.