LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why are Tabcontrol References slowing down my vis in LabView 6?

I have a problem in a program, where I use TabControl to structure the individual tasks (some exectued in parallel) of a microscope control system. I dynamically enable and disable tab pages using a subvi to which I pass the Tabcontrol Reference. My problem is that the program is slowing down significantly with the number of references I create.
0 Kudos
Message 1 of 4
(2,842 Views)
Ususally it happened when your references still opened and you creating new and new and so on... Try close your references after using, or try to reorganize your code for opening references only once (by start).
Hope it help.
0 Kudos
Message 2 of 4
(2,842 Views)
> I have a problem in a program, where I use TabControl to structure the
> individual tasks (some exectued in parallel) of a microscope control
> system. I dynamically enable and disable tab pages using a subvi to
> which I pass the Tabcontrol Reference. My problem is that the program
> is slowing down significantly with the number of references I create.

If you are creating huge numbers of leaked references, this can slow
down the completion or closing of the VI, or the quitting of LV, but
most likely your slowdown has to do with what is happening to the
references. You might need to supply your code or you are only going to
get guesses.

Greg McKaskle
0 Kudos
Message 3 of 4
(2,842 Views)
Hi and thanks to all that have answered to this question. The problem that I had with the TabControls were in fact too many opened References. I solved this problem by using local variables for the References. There was a second problem (which is certainly well know to the LV experts) that is related with multiple while loops that I need for parallel tasks. In the cases checking for an action to be executed, I had no delays in the false case. The Attached file shows my solution to integrate different functionality’s of a Control system that can run parallel, but were there is also the possibility to block some actions by disabling the corresponding TabPages. Right now there are only two dummy functions indicating to show the main the idea (try Scan Modes
/ Constant Current Map page or Point Modes/ I(V) Curve). In the final version of the program there will be many parallel while loop, which I am not happy with and which number I will reduce by using the event structure when possible.
However if any of you has a suggestion how to improve this concept or has a better one please let me know.

EMPAOli
0 Kudos
Message 4 of 4
(2,842 Views)