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 />

…the procedure is run by calling the RunGlobalProcedureAsync function…<br />

RunGlobalProcedureAsync( "AddMe", "2" )<br />

…and the function returns a thread ID that can be used with the RunGlobalProcedureAsyncGetStatus<br />

function.<br />

RunGlobalProcedureAsyncGetStatus<br />

This function gets the status of one or more global procedures that were run asynchronously by calling the<br />

RunGlobalProcedureAsync function. Each procedure is run in its own thread, so that it does not slow down<br />

or interfere with other threads.<br />

Function Group Execution Windows Embedded Thin Client<br />

RunGlobalProcedureAsyncGetStatus<br />

Module Activity Synchronous Supported Supported Not supported; see note<br />

Syntax<br />

RunGlobalProcedureAsyncGetStatus({ | optNumThreadID |<br />

"optTagThreadIDs","optTagStatus","optTagParameters" })<br />

RunGlobalProcedureAsyncGetStatus( )<br />

RunGlobalProcedureAsyncGetStatus( optNumThreadID )<br />

RunGlobalProcedureAsyncGetStatus( "optTagThreadIDs", "optTagStatus",<br />

"optTagParameters" )<br />

optNumThreadID<br />

The thread ID returned by the RunGlobalProcedureAsync function, if the procedure was<br />

successfully executed.<br />

optTagThreadIDs<br />

optTagStatus<br />

The name of an Array tag that will receive the thread IDs of all currently running and recently<br />

completed threads.<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 />

The name of an Array tag that will receive the statuses of all currently running and recently<br />

completed threads.<br />

optTagParameters<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 />

The name of an Array tag that will receive the parameters of all currently running and recently<br />

completed threads.<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 />

Returned value<br />

If the function succeeds, then the possible returned values depend on how the function was called:<br />

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

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

Saved successfully!

Ooh no, something went wrong!