18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introduction<br />

• TimeSlice (from operating system): Causes the operating system to switch automatically between active<br />

threads with the same priority value.<br />

By default, the operating system executes each active thread for approximately 20ms and then switches<br />

to the next active thread. In other words, if there are multiple active threads with the same priority value<br />

waiting to be executed, the operating system will not execute any one active thread for more than 20ms.<br />

• TimeSlice (from IWS): Specifies how long each IWS thread can remain continuously active.<br />

You use this parameter in addition to the operating system's TimeSlice parameter. You configure a<br />

TimeSlice value for each IWS thread (except the Background Task) and specify how long each thread can<br />

remain continuously active. As long as a thread is active, the operating system can switch to that thread.<br />

• Period (from IWS): Specifies the maximum amount of time each IWS thread (except the Background Task)<br />

can remain inactive.<br />

Caution: We strongly recommend that you do not modify these default values unless it is absolutely<br />

necessary. Configuring these parameters incorrectly can cause the entire system to malfunction (for<br />

example, CPU usage will go to 100%) and/or cause some tasks to perform poorly.<br />

If you must change the parameter defaults, note the values before making your changes so if a<br />

malfunction occurs you can return to the original settings.<br />

To change the IWS TimeSlice and Period parameter default values:<br />

1. From the IWS installation directory (for example, C:\Program Files\installation folder\Bin),<br />

double-click \BIN to open the folder.<br />

2. Double-click the Program Settings.INI file to open the file in Microsoft ® Notepad.<br />

The following is a list of all parameters contained in this .ini file and their default values (in milliseconds).<br />

[Period]<br />

DBSpy=1000<br />

UniDDEClient=200<br />

UniDDE=200<br />

Driver=20<br />

LogWin=100<br />

UniODBCRT=100<br />

OPCClient=20<br />

OPCServer=20<br />

TCPClient=100<br />

TCPServer=100<br />

Viewer=50<br />

[TimeSlice]<br />

UniDDEClient=100<br />

Driver=10<br />

OPCClient=10<br />

OPCServer=10<br />

TCPClient=200<br />

TCPServer=200<br />

Viewer=200<br />

Note: You may not see all of these parameters listed when you open your Program Settings.INI<br />

file. However, even if a parameter is not visible in your list, IWS still uses that parameter and its<br />

default value.<br />

• To change the default value of a displayed parameter: In Notepad, delete the default value and type the<br />

new value in its place.<br />

• To change the default value of a parameter that is not displayed in your list: In Notepad, type the<br />

parameter name exactly as shown in the following list, the equal sign, and then the new value.<br />

3. Save the file (File > Save) and close Notepad (File > Exit).<br />

<strong>InduSoft</strong> Web Studio Page 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!