LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting one of the dual processor on Windows

I looking for a way to programactically select one of the processor on on Dual processor windows machine/
LabVIEW or CVi works. If dll is availiable that is alos fine.

I read couple a article in the discussion forum mentioned NI had a LabVIEW exe that does this.

Can any one point to it

Sincerely,
Naresh Kumar Shenkeshi
0 Kudos
Message 1 of 3
(2,845 Views)
Naresh,

The last topic applies to multiprocessor systems. Assigning certain threads to particular processors is something that must be done through SDK functions, it's NOT in the CVI libraries or LabVIEW. The reasons this functionality isn't included is because it's a very simple SDK call that CVI could not have made any simpler. The SDK function SetThreadIdealProcessor (ThreadId, ProcessNum) can be called to assign ThreadId to a zero based ProcessNum. The ThreadID can be obtained from a CVI call(for e.g) and the number of processors on the machine can be determined from a CVI call to CmtGetNumberOfProcessors. Keep in mind only Windows NT and 2000 support multiprocessors systems.

More detailed information on all these topics and some additional topics are in
cluded in the PDF below.
You can also find more details on SDK at the Microsoft Website: www.msdn.com

Finally the exe file you're mentionning was probably part of a demo and not available for download.

Regards,

Cyril Bouton
Applications Engineer
National Instruments
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 2 of 3
(2,845 Views)
The link is actually:
www.msdn.microsoft.com
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 3 of 3
(2,845 Views)