07-07-2009 03:08 AM
Dear all,
In my application, there are 10 different tests out of which the user may choose any to perform it.
each test has a different FP, and has a lot of processing associated with it. The size od whole set of SubVis for a single test would be around 2 MB. Though the Main Vi for every test wud be arnd 200 KBs.
I thought of using Subpanel to display the FP of each test. But in the 1st run phase, when i skip from 1 test to another, it takes arnd 500 ms to show the FP of the selected test. Though if the test has already been opened, and now again if i go to that test, it takes only 5-10ms to show the FP.
But the problem arises in the 1st run when it takes 500 ms.
Is there a better architecture i can use to run the test selected by the user? or is there a better way of handling Vis using Sub panel?
Thanks,
Ritesh
07-07-2009 03:17 AM - edited 07-07-2009 03:18 AM
Hi Ritesh,
when do you load your test vi's? You should load them at the beginnig and only show them if needed.
Mike
07-07-2009 04:13 AM
when do you load your test vi's? You should load them at the beginnig and only show them if needed.
Sorry, but i didn't get what you meant by "Load them at the begining"
i am attaching a picture givng an idea of how the FP of hte main project would look like.
there is a rectangular box for showing the FP of the test selected. and on top of the box are buttons for selecting the test to be performed.
07-07-2009 04:47 AM
Hi Ritesh,
i mean you should load the test vi's (the vi's you can call with your buttons) directly after starting the main vi. If the needed test will be selected, then you present the front panel and start the test.
Mike
07-07-2009 05:30 AM
Ok. I got it.
By Loading you mean Opening reference to it, right?
I jsut chekced that why the VI was taking so much time to open the panel was bcoz the Open VI reference is taking around 500 ms to execute.
I am just wondering why it is taking so much time to open the referce of a VI who size is merely 200 KBs?
Ritesh