18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Log Message functions<br />

These functions are used to display status and debug messages in the Output window (for local runtime) or<br />

Remote LogWin window (for remote runtime).<br />

Trace<br />

Trace is a built-in scripting function that displays a text message in the Output window. It is typically used to<br />

debug the project.<br />

Function Group Execution Windows Embedded Thin Client<br />

Trace Log Message Synchronous Supported Supported Not Supported<br />

Syntax<br />

Trace(strOutputMessage)<br />

strOutputMessage<br />

The text of the message to be displayed.<br />

Returned value<br />

This function does not return any value.<br />

Examples<br />

Display static text that reports a specific event:<br />

Trace("Beginning step 5.")<br />

Display a date or time stamp by referencing the appropriate system tag:<br />

Trace(Date)<br />

Concatenate static text, tag references, and function calls to form a complex message:<br />

Trace("The current second of the minute is " + Second + " and the system tick is " +<br />

GetTickCount() + " ms.")<br />

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

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

Saved successfully!

Ooh no, something went wrong!