18.01.2013 Views

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />

Graphics Script<br />

The Graphics Script is located in the Graphics Worksheet folder. Procedures and Variables declared in<br />

the Graphics Script interface are available locally but are not accessible by any Screen Script interface,<br />

or from any other <strong>VBScript</strong> interface within IWS. Procedures and Variables declared in a Screen Script<br />

interface are not accessible by the Graphics Script. If common Procedure(s) are required, they should<br />

be put into the Global Procedures interface. Note that the Graphics Script is scanned (processed) by<br />

IWS be<strong>for</strong>e the Screen Scripts.<br />

The Graphics Script has three different pre-configured subroutines to execute <strong>VBScript</strong> code. These<br />

subroutines execute the <strong>VBScript</strong> contained in them based on the event state of the Graphics Module.<br />

These are:<br />

Graphics_OnStart<br />

Code contained within this subroutine is automatically executed just once when the Graphics Module is<br />

started. This is a good area to initialize variables or execute start-up code.<br />

Graphics_WhileRunning<br />

Code contained within this subroutine is automatically executed continuously while the Graphics Module<br />

is running. The rate at which this subroutine is called depends on the per<strong>for</strong>mance of the hardware<br />

plat<strong>for</strong>m and other tasks running at the time.<br />

Graphics_OnEnd<br />

Code contained within this subroutine is automatically executed just once when the Graphics Module is<br />

closed.<br />

Graphic Script Icon in<br />

Graphics Worksheet folder<br />

<strong>VBScript</strong> Interface<br />

Key Notes:<br />

• Do not change the name of the pre-configured subroutines in the <strong>VBScript</strong><br />

interface. Otherwise they many not properly execute.<br />

46 <strong>InduSoft</strong>, Ltd.

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

Saved successfully!

Ooh no, something went wrong!