LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

excessive cpu utilization

Application with multiple threads acquiring Rs485 data at 3Mb. Works just fine, except that when the mouse cursor is NOT placed on any of the application panels, CPU utilization is about 45%. When mouse cursur is merely moved on to ANY portion of ANY application panel, CPU utilization goes immediately up to 98%.

I need to find out what this problem is because it is affecting the throughput of our high-speed application's ability to process data and update the various display panels.

Thanks for any help you can provide.
Lew Nathan
lewis.nathan@ngc.com
0 Kudos
Message 1 of 2
(2,905 Views)
Lew,

There are two things you can try to reduce your CPU usage in CVI. The first is to adjust CVI's sleep policy, which determines how often CVI processes user interface events. The second is to place your processing-intensive serial communication into its own thread and to give that thread a higher priority. The are two great discussion forum posts that go into detail about each of these procedures:

Sleep Policy: http://forums.ni.com/ni/board/message?board.id=170&message.id=30245&requireLogin=False
Thread Priority: http://forums.ni.com/ni/board/message?board.id=180&message.id=5704&requireLogin=False

Regards,

E. Sulzer
Applications Engineer
National Instruments
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,881 Views)