Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

[CtAPI]CpuLoadCount

  • Last UpdatedJul 19, 2023
  • 1 minute read

Depending on the capability of your hardware, it is sometimes possible to overload the server's CPU while making a Trend or Alarm query using ctFindFirst(). To avoid this you can use CpuLoadCount in conjunction with the CpuLoadSleepMS parameter.

CpuLoadCount allows you to control how often the request pauses (sleeps) while it is collecting data. The load count corresponds approximately with the number of rows of query data processed by the server before it pauses. Decreasing this number means the request will pause more often and hence take longer to complete. However the workload will be stretched over a longer time period, decreasing the intensity of demand on the CPU.

Note: You will need to experiment to see which values are appropriate for optimum performance on your system. When experimenting you should adjust the value of CpuLoadSleepMS before CpuLoadCount.

Allowable Values:

0 to any valid INT

Default Value:

100

See Also

CtAPI Parameters

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in