Вы находитесь на странице: 1из 32

Ground floor

Block D
Gilloolys View Office Park
1 Osborne Road
Bedfordview

Using aaTrendControl in
ArchestrA
Table of contents
1. Adding the aaTrendControl.dll to your Galaxy
2. Embedding the aaTrendControl.dll in an Archestra object as a graphic symbol
3. Using the Trend Control graphic in InTouch
4. Adding a server and some tags

Tel: 0861-WONDER
Fax: (011) 607-8478

1. Adding the aaTrendControl.dll to your Galaxy


1.1 Open your existing Galaxy

1.2 Import the Client Control, Go to the file menu, Galaxy Import Client Control

1.3 In the Look in list box go to :


Local Disk Program Files Common Files Archestra aaTrendControl

1.4 Import the Client Control with the following preferences

1.5 Importing the TrendControl.dll

1.6 After import click close.

1.7 The aaTrendControl is now imported into the graphic toolbox

2. Embedding the aaTrendControl.dll in an Archestra object as a


graphic symbol
The following will show you how to use the trend control inside an Archestra object as a
graphic

We will use custom properties of the aaTrendControl and a script to


manipulate the plot image background.
Lets begin!
2.1 Make a new user defined object and create a new graphic in the Graphics tab and name it
aaTrendControl

2.2 Open the new aaTrendControl graphic and click on the embed graphic button

10

2.3 Select the graphic tool box button and select the aaTrendcontrol object

11

2.4 The aaTrendControl object is now embedded in the graphic

12

2.5 We will now add a custom property to change the background of the plot image through
custom properties.
Right click on the development environment and click on custom properties from the pop up
menu OR press Ctrl + M together

13

2.6 Click on the big plus to add a property and name it Background. Change the settings to
match image below

1) Change the data type to string


2) Change the default value to the path of a folder with an image inside the folder.(any image
will do)

14

2.7 Lets add the script to use the custom property we just made. Right click on the
development environment and select scripts from the pop up menu OR press F10

15

2.8 The script editor will now open up as shown below.

Click on the attribute/element browser button to open up the aaTrendControl properties

16

2.9 In the aaTrendControl1 Property list, select the PlotImage property.

17

2.10 This will add the property to the script as shown below.

18

2.11 Change the script to look at the custom property we created earlier.

Click OK to close the script editor.

19

2.12 The aaTrendControl is now configured, click the save and close button

20

2.13 After the trend saves and closes, check in the aaTrendControl object

21

3. Using the trend control graphic in InTouch


This will show you how to configure the end result in InTouch.

3.1 Open Windowmaker and make a new window called TrendControl_01


Click on the embed ArchestrA graphic symbol button to embed the graphic we created.

22

3.2 The Galaxy browser will open up, click on the instance browser and select the
aaTrendControl graphic

23

3.3 Click on the window to embed the graphic control.

24

3.4 Click on Runtime button to view the trend in Windowviewer.

25

3.5 The plot image will have changed to the graphic object in the specified folder.

Now that you are bit more familiar with the aaTrendControl we will add an
InSQL server and some tags to the aaTrendControl.

26

4. Adding a Server and some tags to the trend


Open the graphic template aaTrendControl in your object again.
Go to the custom properties (Ctrl + M)

4.1 First we will add the Server Name as a Custom property.

27

4.2 Now we will add an InSQL User Name to log in with.

28

4.3 Lets add the password for the above username.

29

4.4 Finally we will add a configured InSQL tag to the aaTrendControl

30

4.5 Lets add a script to login to the server and add a tag to the trend
We will use the AddServerEX to log in to InSQL with our custom made properties

We will use the AddAnyTag script with our custom property tagname (Tag_01) to add a tag
to the aaTrendControl
Close the graphic and redeploy the object.
Open your windowviewer and run the TrendControl_01 Window

31

4.6 And there you have it, a trend with an active tag as an ArchestrA graphic

32

Вам также может понравиться