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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

<strong>VBScript</strong> Configuration and Operation in IWS<br />

IWS acts as the host application <strong>for</strong> the Microsoft <strong>VBScript</strong> Engine. This means that to write <strong>VBScript</strong>,<br />

you need to be in the IWS development (engineering) environment. It is important to note that there is<br />

no one central location where a <strong>VBScript</strong> interface is located inside an IWS application. The location of<br />

the <strong>VBScript</strong> interface (where the <strong>VBScript</strong> code gets placed) depends on the function the <strong>VBScript</strong><br />

code is to per<strong>for</strong>m and the scope of access to its Procedures and Variables. <strong>InduSoft</strong> has implement<br />

<strong>VBScript</strong> in this manner to simplify its use, and to be consistent with the IWS architecture as well as<br />

current licensing methods.<br />

<strong>VBScript</strong> is interpreted code. While it executes fairly efficiently, it is nevertheless interpreted and will<br />

never execute as efficiently as compiled code. This should not present any concern <strong>for</strong> HMI/SCADA<br />

applications since IWS is per<strong>for</strong>ming the real-time management of the tag database and key functions<br />

such as alarming, logging, etc. The interpreted nature of <strong>VBScript</strong> allows changes to be made quickly to<br />

an application. IWS supports dynamic, on-line configuration and this capability is maintained with the<br />

addition of <strong>VBScript</strong> support<br />

Developers familiar with IWS know that in the bottom left corner of the development window are tabs<br />

that provide access to the Database, Graphics, Tasks, and Communications Workspace folders<br />

containing the different application components. The developer will need to navigate among these<br />

different folders and application components when using <strong>VBScript</strong>.<br />

<strong>VBScript</strong> interfaces can be found in 6 different areas:<br />

• Database Workspace folder – Global Procedures<br />

• Graphics Workspace folder - Graphics Script<br />

• Graphic Screens – Screen Scripts<br />

• IWS Objects on a Screen – Command Dynamic<br />

• ActiveX Objects on a screen – ActiveX Events<br />

• Tasks Workspace folder – Background Startup Script and Background Script Groups<br />

Subfolders and Icons<br />

within a Workspace<br />

folders<br />

Tabs to access various<br />

Workspace folders<br />

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

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

Saved successfully!

Ooh no, something went wrong!