*Configure Trend ActiveX

The OPC Trend ActiveX control can be integrated directly into any ActiveX container, most commonly HMI graphic applications or Visual Studio 6.0.

Note: ActiveX controls are not 100% managed and you should use the .NET controls for Visual Studio.NET applications and in more update to date containers that support .NET controls.

Below is an example of using the OPC Trend ActiveX Control integrated into Visual Basic 6.0 or other ActiveX container of your choice.

Step

Task

1

Start Visual Basic 6.0 with a new or existing Project or other ActiveX container application of your choice.

If using other ActiveX container than Visual Studio simply select the appropriate method of the application to add an ActiveX control and select OPCTrendActiveX.OPCTrend and skip to Step 6.

2

To add the OPC Trend.ActiveX Control to your Visual Studio 6.0 development system select View-Toolbox from within Visual Studio.

3

Right-Click on the Toolbox and select Components.

4

Select OPC Trend ActiveX Control from the list of Controls

5

*From the ToolBox select the OPC Trend ActiveX Control icon and add the trend to any Form.

6

Resize the Trend Window to any size your desire.

Please note that some of the Runtime Properties will not be available for modifying during runtime if the Trend Window is too small.

7

Select Properties of Trend Window and select Pens.

8

Select Add Pen.

Select the Local OPC Systems Service in the Trend Point Tags dialog.

*Note: if you desire to setup the Trend Window to work on remote application select the Network browse to select the appropriate network name of the local or remote OPC Systems Service.

6

Expand the Ramp Tag and select the Value Parameter and select OK in the lower left of the dialog.

Only Parameters that have been enabled as Trend Point in the Tag configuration will appear for trending.

7

Select Add Pen and expand the Sine Tag and select the Value Parameter and select OK in the lower left of the dialog.

8

Select Ramp.Value from the Pen list and set the Pen Color to Blue, then select Apply button for the Pen.

9

Select Sine.Value from the Pen list and set the High Range to 1 and Low Range to -1, then select the Apply button for the Pen..

10

Select the Rates Property Tab and set the set the TimeFrame to 60 seconds.

11

Select OK at the bottom of the Property Page.

12

Save your application and compile if needed and you are now ready to run the application.

Continue: *Alarming