using the trend control in archestra

Upload: folsom-chev

Post on 01-Jun-2018

1.250 views

Category:

Documents


41 download

TRANSCRIPT

  • 8/9/2019 Using the Trend Control in ArchestrA

    1/32

     

    Ground floorBlock DGillooly’s View Office Park1 Osborne RoadBedfordview

    Tel: 0861-WONDERFax: (011) 607-8478

    Using aaTrendControl in

    rchestr

    Table of contents

    1. Adding the aaTrendControl.dll to your Galaxy2. Embedding the aaTrendControl.dll in an Archestra object as a graphic symbol

    3. Using the Trend Control graphic in InTouch4. Adding a server and some tags

  • 8/9/2019 Using the Trend Control in ArchestrA

    2/32

     

    2

    1.  Adding the aaTrendControl.dll to your Galaxy

    1.1 Open your existing Galaxy

  • 8/9/2019 Using the Trend Control in ArchestrA

    3/32

     

    3

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    4/32

     

    4

    1.3 In the Look in list box go to :

    Local Disk Program Files Common Files Archestra aaTrendControl

  • 8/9/2019 Using the Trend Control in ArchestrA

    5/32

     

    5

    1.4 Import the Client Control with the following preferences

  • 8/9/2019 Using the Trend Control in ArchestrA

    6/32

     

    6

    1.5 Importing the TrendControl.dll

  • 8/9/2019 Using the Trend Control in ArchestrA

    7/32

     

    7

    1.6 After import click close.

  • 8/9/2019 Using the Trend Control in ArchestrA

    8/32

     

    8

    1.7 The aaTrendControl is now imported into the graphic toolbox

  • 8/9/2019 Using the Trend Control in ArchestrA

    9/32

     

    9

    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 tomanipulate the plot image background.

    Let’s begin! 

    2.1 Make a new user defined object and create a new graphic in the Graphics tab and name it

    aaTrendControl

  • 8/9/2019 Using the Trend Control in ArchestrA

    10/32

     

    10

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    11/32

     

    11

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    12/32

     

    12

    2.4 The aaTrendControl object is now embedded in the graphic

  • 8/9/2019 Using the Trend Control in ArchestrA

    13/32

     

    13

    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

  • 8/9/2019 Using the Trend Control in ArchestrA

    14/32

     

    14

    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)

  • 8/9/2019 Using the Trend Control in ArchestrA

    15/32

     

    15

    2.7 Let’s 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

  • 8/9/2019 Using the Trend Control in ArchestrA

    16/32

     

    16

    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

  • 8/9/2019 Using the Trend Control in ArchestrA

    17/32

     

    17

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    18/32

     

    18

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    19/32

     

    19

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

    Click OK to close the script editor.

  • 8/9/2019 Using the Trend Control in ArchestrA

    20/32

     

    20

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    21/32

     

    21

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    22/32

     

    22

    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.

  • 8/9/2019 Using the Trend Control in ArchestrA

    23/32

  • 8/9/2019 Using the Trend Control in ArchestrA

    24/32

     

    24

    3.3 Click on the window to embed the graphic control.

  • 8/9/2019 Using the Trend Control in ArchestrA

    25/32

     

    25

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    26/32

     

    26

    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 anInSQL server and some tags to the aaTrendControl.

  • 8/9/2019 Using the Trend Control in ArchestrA

    27/32

     

    27

    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.

  • 8/9/2019 Using the Trend Control in ArchestrA

    28/32

     

    28

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

  • 8/9/2019 Using the Trend Control in ArchestrA

    29/32

     

    29

    4.3 Let’s add the password for the above username.

  • 8/9/2019 Using the Trend Control in ArchestrA

    30/32

  • 8/9/2019 Using the Trend Control in ArchestrA

    31/32

     

    31

    4.5 Let’s 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

  • 8/9/2019 Using the Trend Control in ArchestrA

    32/32

     

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