Application examples (tutorials)

TIP: You can use a preconfigured alarm grid instead of creating it from scratch. For more information, select
Template Libraries
Template Libraries
and select
Widgets
Alarm Grid
.
IMPORTANT:
Pressing
Shut down system
immediately shuts down the host operating system
on which the
FactoryTalk Optix Application
runs.
For example, if you run the
FactoryTalk Optix Application
on an emulator target, pressing
Shut down system
immediately shuts down your Windows system.
This tutorial assumes familiarity with this information:
Prerequisites
Download a sample project:
TIP: The Client project imports data from the Server project.
  1. To develop the project
  2. Arrange the interface elements.
  3. CONTAINER STEP
    For more information about dynamic links, see create-dynamic-links.html.
    TIP: Graphical objects are created based on the variables types.
    TIP: If you do not see the required option, select the
    Show all
    check box.
    TIP: You can select the
    @BrowseName
    attribute by selecting it from the
    Attribute
    drop-down menu at the bottom.
    TIP: Motor manufacture dates are set while creating the Motor object type and object instances.
    TIP: You may need to enter
    Column1
    manually.
    TIP: You can select the
    @Attribute
    values from the
    Attribute
    drop-down menu at the bottom of the dialog.
    1. In
      Project view
      , right-click
      AlarmGridPanel
      and select
      New
      Base controls
      Button
      .
  4. Configure the motor name column:
    1. In
      Properties
      , double-click
      DataGridColumn1
      and enter
      MotorNameCol
    2. Under
      DataItemTemplate
      , create a dynamic link between the
      Text
      property and
      Aliases
      {Item}
      Motor@BrowseName
      TIP: You can select the
      @BrowseName
      attribute by selecting it from the
      Attribute
      drop-down menu at the bottom.
      For more information about dynamic links, see create-dynamic-links.html.
    3. Crete a dynamic link between the
      Order by
      property and
      Aliases
      {Item}
      Motor@BrowseName
      TIP: You can select the
      @BrowseName
      attribute by selecting it from the
      Attribute
      drop-down menu at the bottom.
      For more information about dynamic links, see create-dynamic-links.html.
    4. Set
      Title
      to
      Motor Name
  5. Create the motor speed column:
    1. In
      Properties
      , next to
      Columns
      , select
      Add
      Add
      and select
      Text column
      .
    2. Double-click the column name and enter
      MotorSpeedCol
    3. Under
      DataItemTemplate
      , create a dynamic link between
      Text
      and
      Aliases
      {Item}
      Motor
      Speed
      .
      For more information about dynamic links, see create-dynamic-links.html.
    4. Set
      Title
      to
      Speed
  6. Create the motor acceleration column:
    1. In
      Properties
      , next to
      Columns
      , select
      Add
      Add
      and select
      Text column
      .
    2. Double-click the column name and enter
      MotorAccelerationCol
    3. Under
      DataItemTemplate
      , create a dynamic link between
      Text
      and
      Aliases
      {Item}
      Motor
      Acceleration
      .
      For more information about dynamic links, see create-dynamic-links.html.
    4. Set
      Title
      to
      Acceleration
  7. Create the motor torque column:
    1. In
      Properties
      , next to
      Columns
      , select
      Add
      Add
      and select
      Text column
      .
    2. Double-click the column name and enter
      MotorTorqueCol
    3. Under
      DataItemTemplate
      , create a dynamic link between the
      Text
      property and
      Aliases
      {Item}
      Motor
      Torque
      .
      For more information about dynamic links, see create-dynamic-links.html.
    4. Set the
      Title
      property value to
      Torque
  8. Save the project.
  9. In
    Project view
    , right-click the
    OPC-UA
    folder and select
    New
    OPC UA Server
    .
  10. In
    Properties
    , take a note of the
    Endpoint URL
    property value.
    NOTE: You need the
    Endpoint URL
    property value to configure the OPC UA Client later on.
  11. OBJECT EXAMPLES
  12. In
    Project view
    , create or select a
    Combo box
    object.
  13. In
    Properties
    , create a dynamic link between the
    Model
    property and a node.
    Selected node
    Combo box
    Database object
    Values contained in database tables.
    Project node
    Values of attributes or properties of all direct child nodes.
    For more information about dynamic links, see create-dynamic-links.html.
  14. (optional) Specify the kind of items to display in the object by setting
    ItemKind
    .
    TIP:
    The
    ItemKind
    property is automatically set with the object or variable type recognized among the child nodes.
    For example, if the model is based on a folder node that contains several instances of a
    Motor
    object type,
    ItemKind
    is automatically set with the reference to the type. In this case, the values that display are the attributes or properties of different instances (, , , and so on).
  15. (optional) Sort items by setting
    Sort order
    and
    Order by
    values.
  16. (optional) In
    Events
    , associate
    Selection changed
    with the
    Refresh
    method.
    The items contained in the object refresh each time you interact with it.
  17. Configure chart labels by creating a dynamic link between
    Label
    and a variable argument (for example, ).
In
FactoryTalk Optix Studio
, select
Run
Run
to run the project using the client emulator to test your project. To run the project on a remote client, see add-a-client-device.html.
In
FactoryTalk Optix Studio
, select
Run
Run
to run Server and Client projects using the client emulator to test your project. To run the project on a remote client, see add-a-client-device.html.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.