No BSD License  

Highlights from
SetPriority

3.5

3.5 | 2 ratings Rate this file 5 Downloads (last 30 days) File Size: 16.75 KB File ID: #3006

SetPriority

by Shen Chunhua

 

12 Feb 2003 (Updated 12 Feb 2003)

Set process priority of MATLAB.

| Watch this File

File Information
Description

Set process priority of MATLAB.

SetPriority(P), P is string which can be
'RealTime' or 'RT',
'High' or 'H'
'AboveNormal' or 'AN'
'Normal' or 'N'
'BelowNormal' or 'BN'
'Low' or 'L'

Tested on WIN2000,WINXP + MATLAB R13, Generic DLL Module required which can be downloaded from the MathWorks website.

MATLAB release MATLAB 6.5 (R13)
Other requirements MATLAB Interface to Generic DLLs
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
03 Jan 2005 JJ Jiang

  The utility library is probably short (<20 lines), though I haven't seen the source code. However, it is very useful for our project. Great job!

01 Sep 2005 Ryan Ollos

Unfortunately the author could not be reached at his listed address.

When i run this, i get the following error:

??? Error using ==> loadlibrary
Failed to preprocess the input file.
 Output from preprocessor is:'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Error in ==> setpriority at 23
loadlibrary DLLPriority DLLPriority.h alias SetP

I think the problem is that Matlab is installed in the following location on my machine: C:\Program Files\MATLAB7. This is where it installs by default with R14.

I think it would be a simple change to your code of adding some double quotes to path strings in the source code, in order to make it work.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
distributed processing Shen Chunhua 22 Oct 2008 06:56:32
parallel computing Shen Chunhua 22 Oct 2008 06:56:32
process priority Shen Chunhua 22 Oct 2008 06:56:32
set Shen Chunhua 22 Oct 2008 06:56:32
string Shen Chunhua 22 Oct 2008 06:56:32

Contact us at files@mathworks.com