LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Win-NT & win98

I have developed a program using GPIB calls in a multi-threaded environment(max.
of 4 threads)
using win32 SDK(Labwindows ver 5.5). I am running it as a stand alone application.

The application runs fine in a Win-98 system wheras the same application
is very slow in a Win-NT 4.0 machine.
(User interface response is very very slow) Win-NT machine is a more powerful
system than the win-98 system
(latest processor with higher clock rate and more more memory)and expected
to be better.
Is there any setting in NT or any programming technique available to increase
the performance in the NT system?
0 Kudos
Message 1 of 2
(2,825 Views)
Hello Geetha,
There are many things that you can try in an effort to make you program more responsive. First, you could wait until your program running on NT is acting unresponsive and break execution (press Ctrl-F12 or the Stop Sign on the toolbar). Then look at which callback your main user interface (UI) thread is stuck in. Consider putting ProcessSystemEvents into this slow callback and any other slow or lengthy UI callbacks, especially inside loops within callbacks. You could also try setting the sleep policy with SetSleepPolicy() to VAL_SLEEP_SOME or VAL_SLEEP_NONE, but this will cause the UI thread to consume additional CPU time. Also, are you setting increased priorities for the threads you create (and not the main UI thread)? If so, they might be stealing th
e UIs time. Finally, consider that release executables often run much faster than when you are debugging.

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,825 Views)