09-15-2010 01:48 AM
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
Solved! Go to Solution.
09-15-2010 01:57 AM
09-15-2010 02:25 AM
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.
09-15-2010 02:42 AM
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.
09-15-2010 08:49 AM
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
09-15-2010 09:03 AM
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.
09-16-2010 02:12 AM
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.