11.07.2015 Views

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

SHOW MORE
SHOW LESS
  • No tags were found...

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><strong>VBScript</strong> Configuration and Operation in IWSIWS acts as the host application <strong>for</strong> the Microsoft <strong>VBScript</strong> Engine. This means that to write <strong>VBScript</strong>,you need to be in the IWS development (engineering) environment. It is important to note that there isno one central location where a <strong>VBScript</strong> interface is located inside an IWS application. The location ofthe <strong>VBScript</strong> interface (where the <strong>VBScript</strong> code gets placed) depends on the function the <strong>VBScript</strong>code is to per<strong>for</strong>m and the scope of access to its Procedures and Variables. <strong>InduSoft</strong> has implement<strong>VBScript</strong> in this manner to simplify its use, and to be consistent with the IWS architecture as well ascurrent licensing methods.<strong>VBScript</strong> is interpreted code. While it executes fairly efficiently, it is nevertheless interpreted and willnever execute as efficiently as compiled code. This should not present any concern <strong>for</strong> HMI/SCADAapplications since IWS is per<strong>for</strong>ming the real-time management of the tag database and key functionssuch as alarming, logging, etc. The interpreted nature of <strong>VBScript</strong> allows changes to be made quickly toan application. IWS supports dynamic, on-line configuration and this capability is maintained with theaddition of <strong>VBScript</strong> supportDevelopers familiar with IWS know that in the bottom left corner of the development window are tabsthat provide access to the Database, Graphics, Tasks, and Communications Workspace folderscontaining the different application components. The developer will need to navigate among thesedifferent folders and application components when using <strong>VBScript</strong>.<strong>VBScript</strong> interfaces can be found in 6 different areas:• Database Workspace folder – Global Procedures• Graphics Workspace folder - Graphics Script• Graphic Screens – Screen Scripts• IWS Objects on a Screen – Command Dynamic• ActiveX Objects on a screen – ActiveX Events• Tasks Workspace folder – Background Startup Script and Background Script GroupsSubfolders and Iconswithin a WorkspacefoldersTabs to access variousWorkspace folders<strong>InduSoft</strong>, Ltd. 43

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

Saved successfully!

Ooh no, something went wrong!