ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

limit executable to a single core

Solved!
Go to solution

Maybe I just missed it in my search of the forums, but I was curious if anyone knows how to limit a LV executable to a single core in a multicore machine?  Currently, when I try to do high-speed replays of stored data, I can sometimes peg both CPUs in my Core2 duo.  I'd like to find a way to lock my app to one core and ensure that when it is taxed, it doesn't bog down a C# based app running on the other core.  The solution doesn't have to be LV-based... if there is a way to do this through the OS (Win7, in this case), I'll take it!

 

Thanks,

JasonP - CLD

0 Kudos
Message 1 of 3
(3,185 Views)
Solution
Accepted by topic author Jason_P
In XP at least (don't know about 7), you can right click on the process in the Task Manager and set its affinity. I assume that a Google search for "affinity" and "programmatically" should yield some further results if you want to automate this.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,164 Views)

Thank you - "affinity" was the term I needed.  Once I had that, I was able to find this:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=487627

 

Thanks!

JasonP - CLD

0 Kudos
Message 3 of 3
(3,150 Views)