M-Graphics User’s Manual 14-1

Chapter 14 TWXView32 ActiveX Control

Introduction The TWXView32 is an OPC Client application and provides realtime trending within the M-Graphics product family. This chapter describes how to: • insert a TWXView32 control • edit general parameters • edit fonts parameters • edit workspace parameters • edit grids parameters • edit ranges parameters • edit details parameters • edit time parameters • edit rate parameters • edit pens parameters • edit settings parameters • view about information • edit pens in Runtime • edit trend in Runtime • edit period in Runtime • toggle freeze/unfreeze in Runtime • view statistics in Runtime • edit the focus pen in Runtime • move between samples in Runtime

© January, 2001 Johnson Controls, Inc. 14-2 Controls

Key Concepts

TWXView32 ActiveX Control TWXView32 ActiveX can be used with third party OPC applications to provide excellent trending features. Some of TrendWorX32 Viewer features include: • displaying realtime data • managing a sophisticated multi-threaded data buffering to guarantee data integrity with support for customer configurable data collection rates • independent data collection/screen refresh mechanism • extensive Runtime configuration • built-in buffering system • support for custom imported data • multilingual support • interface to OPC realtime servers • easy integration • extensive realtime signal information (including signal quality) • expression handling • realtime statistical information with CSV file support • user configured alarm levels for signals • user defined global or relative signal ranges • fixed location or scrolling grids • embedded signal simulator • multiple plotting type support: Time plot, XY-plot, logarithmic plot, strip chart, bar plot TWXView32 ActiveX Control 14-3

TWXView32 ActiveX in M-Graphics The TWXView32 ActiveX integrates easily within Visual C++ or Visual Basic container applications. Containers, such as M-Graphics provide toolbar support for inserting the TWXView32 control. Once inserted into a document or a form, the component can be resized and configured. The TWXView32 ActiveX saves almost all of its configuration data within its own streamed file format with extensions *.v32. The user must give a valid file name before the data are serialized and saved. The TWXView32 uses a working directory defined in containers (such as M-Graphics). This represents the working directory where project files and configurations files are stored. TWXView32 utilizes this directory as a starting point for saving and loading its configuration files. Graphics built with Iconics TWXView32 control running within a container, such as M3 Workstation or , may cause frequent crashing while switching from Configure mode to Runtime mode. While in Runtime mode, double-clicking on the control and switching to Configure mode crashes M-Graphics. As a workaround, we recommend while updating the graphics with TWXView32 control, run M-Graphics application standalone. The crash only occurs when M-Graphics is running within another container such as M3 Workstation or Internet Explorer.

Connections TWXView32 can display data from realtime signals connected to OPC servers, calculated variables using expressions, simulated data, and custom data through OLE automation. Signal connections can be done in various ways: • in Configuration mode through the pens property page • in Runtime mode through the real pens button of the toolbar • using OLE methods (such as AddRealTimePen) and VB Script/VBA • using drag and drop (text format) in Runtime mode only Once a signal is connected to a TWXView32 pen, the TWXView32 adds the pen to its buffering system manipulation and starts data collection and data display. Use the Tags button to connect pens to realt