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.

Appendix: Built-in Scripting Language<br />

Value of numMetrictype<br />

Description, including the string that is written to optTagDescription<br />

22 Bitmap Allocation Allowed<br />

The maximum number of shared bitmap objects that can be allocated.<br />

23 Bitmap Allocation State<br />

How the memory for shared bitmap objects is currently allocated: 0 = Disabled; 1 = Always; 2 = Dynamic; 3 =<br />

Critical.<br />

24 Image Allocation Allowed<br />

The maximum number of shared image objects that can be allocated.<br />

25 Image Allocation Count<br />

The number of shared image objects that are currently allocated.<br />

26 Image Allocation (%)<br />

The percentage ( count / allowed ) of shared image objects that are allocated.<br />

27 Image Allocation State<br />

How the memory for shared image objects is currently allocated: 0 = Disabled; 1 = Always; 2 = Dynamic; 3 =<br />

Critical.<br />

28 Buffer Allocation Allowed<br />

The maximum number of shared buffer objects that can be allocated.<br />

29 Buffer Allocation Count<br />

The number of shared buffer objects that are currently allocated.<br />

30 Buffer Allocation (%)<br />

The percentage ( count / allowed ) of shared buffer objects that are allocated.<br />

31 Buffer Allocation State<br />

How the memory for shared buffer objects is currently allocated: 0 = Disabled; 1 = Always; 2 = Dynamic; 3 =<br />

Critical.<br />

optTagDescription<br />

The name of a String tag that will receive a description of the selected metric. The description is<br />

the same as shown in the table for numMetrictype above.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

This parameter is optional.<br />

Returned value<br />

If this function is successfully executed, then it returns a positive value according to the type of metric that<br />

was selected (see numMetrictype above). Otherwise, if it was not successfully executed, then it returns a<br />

negative error value:<br />

Returned value<br />

Description<br />

-1 Invalid number of parameters.<br />

-2 Wrong parameter type.<br />

-3 Could not get the selected metric.<br />

-4 Tag specified by optTagDescription does not exist.<br />

-5 Could not write to tag specified by optTagDescription.<br />

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

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

Saved successfully!

Ooh no, something went wrong!