LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inexplicable delay between changing of tab-control pages

Solved!
Go to solution

Hello dear NI-Forum.

I have a strange problem.

 

In my program I use a tab-control.

On one pc pages changes immediatly after the user click on the other page, but on another pc there is a delay (ca. 1 second) until the new page is shown. The rest of the program works with the same "speed".

 

Do you have any idea why it is so ?

 

The main program has a while-loop with 25-ms delay in it. In the loop there is a case-structure, the cases are different pages of the tab-control.

 

(it is the same exe-file)

 

Thank you.

Alex

 

 

0 Kudos
Message 1 of 7
(3,532 Views)

Hello   alexphysiker,

 

   That might be because of the PC configuration.. Do you mind posting your code... Will help us to answer you better.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(3,527 Views)

What for a configuration it could be ?!!

 

 

It was a 3-month project, the code is very big and complicated 🙂

I will upload the main structure of the program, may be it will help, but the code seems to be "normal"

 

Cheers.

 

 

0 Kudos
Message 3 of 7
(3,520 Views)

I've tested the file I uploaded before, it is the same long delay (ca. 0.5-1 s).

 

The pc is fast enough 😉

 

Confused :-s

 

Windows XP Prof.

 

 

 

0 Kudos
Message 4 of 7
(3,513 Views)
Solution
Accepted by topic author alexphysiker

Changing tab pages require a screen refresh so at least the graphics adapters could be the difference.

 

More memory in the faster machine...

 

Does the slow mahcine have virus checking or other processes that are using the CPU?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 7
(3,498 Views)

I am not seeing the behavior you're describing, and I'm even running LV 2010 in a virtual machine. I can tell you that the background you have for the front panel causes a huge hit to refresh time. Is it really necessary? Unless it's absolutely positively necessary, lose it.

 

I don't know where you're going with this program, but you may want to look into some other program architectures and/or structures, such as the event structure rather than a polling loop, or a master/slave or a producer/consumer.

0 Kudos
Message 6 of 7
(3,490 Views)

Thank you Ben,

 

you are right, the graphic adpater is the reason for it.

The pc's are build in in a measurement system, and the both systems are similar, I've not thougth, that they (pc's) are so different. I've checked CPU (1.7 GHz) and Ram (512 Mb) (for me it was good enought for a XP-Maschine) but not the graphic adapter (it is 32 Mb shared memory) on the slow machine.

 

Now I've deleted the background (it was really not nessesary, thx smercurio_fc) and hope the tabs will change faster. I can not change the programstructure, it is allmost the final version of the program.

 

Thank you guys.

0 Kudos
Message 7 of 7
(3,471 Views)