![background image](http://html1.mh-extra.com/html/omron/cx-supervisor/cx-supervisor_user-manual_744211292.webp)
Appendix B Frequently Asked Questions
291
Sleep can cause problems during shutdown of the runtime, if a sleeping
script is still running.
•
How do I use System points in Visual Basic ‘VBScript’?
Access CX-Supervisor points from Visual Basic style scripting called
VBScript couldn't be simpler - just use the point name normally, e.g.
MsgBox(MyPoint).
However note that '$' is a reserved character so System Points can be
accessed with 's_' prefix instead e.g. MsgBox(s_Second) for $Second
system point.
For up to date information and all help on scripting and the Windows
Scripting Host see http:\\www.microsoft.com/scripting.
•
What are the syntax differences between VBScript and CX-
Supervisor script?
VBScript has some minor syntax differences to CX-Supervisor script. The
most important are:
•
Boolean equality test == is only = in VBScript.
•
Boolean inequality test != is <> in VBScript.
•
Endif becomes End If in VBScript.
•
Array indexing using ( ) uses square brackets in VBScript [ ]
Note that CX-Supervisor interprets { and } characters as string delimiters,
even in VBScript so the following code does not work:
MsgBox("Press {Enter}")'does not work
Instead use the following to replace these characters:
MsgBox("Press " + chr(123) + "Enter" + chr(125))
•
Why are ActiveX events shown differently in the Animation Editor
and Property Browser?
New in CX-Supervisor version 1.2 the ActiveX Property Browser has an
Events Tab, which allows the object's events to be linked to scripts. These
scripts are defined as VBScript subroutines defined in the Page
Initialisation script.
It is more efficient to load these subroutines once during page
initialisation, than every time the event occurs as per previous versions
using the Animation Editor. However, this method is still supported to
allow editing of old projects. This difference is by design and is correct.
•
Why does CX-Supervisor show different ActiveX properties to Visual
Basic or Excel?
Properties of ActiveX controls shown in the CX-Supervisor "ActiveX
Property Browser" may differ from those seen in the Visual Basic or Excel
property browser. This can be for one or more of the following reasons:
•
Both Visual Basic and Excel show their own container properties in
this window, as well as the object properties. CX-Supervisor does
not show its container properties. Examples of VBA container
properties are:
Summary of Contents for CX-Supervisor
Page 1: ...CX Supervisor Software Cat No W10E EN 01 User Manual Software Release 3 1...
Page 3: ...Copyright Notice 2...
Page 16: ...15...
Page 17: ...16...
Page 27: ...Tip of the Day SECTION 1 Graphics Editor 26...
Page 35: ...CX Supervisor Preferences SECTION 2 Pages 34...
Page 79: ...Responding to Events SECTION 5 ActiveX Objects 78...
Page 115: ...Printing the Graphics Library SECTION 7 Graphics Library 114...
Page 181: ...Data Logging SECTION 11 Data Logging 180...
Page 201: ...Examples SECTION 12 Databases 200...
Page 243: ...Performance Monitor SECTION 16 Application Analysis Performance Monitor 242...
Page 253: ...Using with Omron s CX Server OPC SECTION 17 Using CX Supervisor as an OPC Cli 252...
Page 259: ...Creating a CX Supervisor Client application SECTION 18 Connecting to a remote CX 258...
Page 263: ...Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial 262...
Page 271: ...Data Logging SECTION 20 Best Practices 270...
Page 275: ...Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 274...
Page 277: ...Appendix B Frequently Asked Questions 276...
Page 296: ...Appendix B Frequently Asked Questions 295...
Page 297: ...Appendix B Frequently Asked Questions 296...
Page 298: ...Appendix B Frequently Asked Questions 297...
Page 299: ...Appendix B Frequently Asked Questions 298...
Page 333: ...Revision history 332...