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

IWS implements Visual Basic Script Edition 5.5 or higher, and functions as the “host” <strong>for</strong> <strong>VBScript</strong>. IWS<br />

provides an integrated development environment where the HMI/SCADA application developer can<br />

take advantage of the functionality and ease of use of <strong>VBScript</strong>, yet have access to all IWS tags and all<br />

built-in functions directly from <strong>VBScript</strong>. The diagram below illustrates the IWS architecture. Since<br />

<strong>VBScript</strong> is an interpreted language, the <strong>VBScript</strong> Engine parses the language at runtime and executes<br />

commands subject to limitations placed by the <strong>VBScript</strong> Host. <strong>InduSoft</strong> allows <strong>VBScript</strong> code to be<br />

located several areas in an IWS application:<br />

• Global Procedures. This is an area <strong>for</strong> subroutines and functions that can be called by any other<br />

<strong>VBScript</strong> routine, or by a built-in IWS function (requires IWS Version 6.1 Service Pack 1 or later).<br />

• Graphic Script. Code in this area gets executed whenever any graphics (screens) are active.<br />

• Screen Script. This is where code is executed when an individual screen is active.<br />

• Command Dynamic. When an object has a Command Dynamic, one option is to run <strong>VBScript</strong><br />

code.<br />

• ActiveX Events. A <strong>VBScript</strong> code segment can be run based on an ActiveX event<br />

• Background Task. <strong>VBScript</strong> code can be running as a background task. One or more <strong>VBScript</strong><br />

groups are supported, allowing conditional processing of the various <strong>VBScript</strong> background tasks.<br />

This subject is covered more completely later in the <strong>VBScript</strong> Configuration and Operation in IWS<br />

section.<br />

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong> Version 6.1 Internal Architecture<br />

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

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

Saved successfully!

Ooh no, something went wrong!