Difference between revisions of "OtfPlayerEditor"

From emotive
Jump to navigation Jump to search
Line 135: Line 135:
 
===TableControl===
 
===TableControl===
 
The table control is best suited for displaying values inside of a list or map.
 
The table control is best suited for displaying values inside of a list or map.
 +
 +
==Binding of Parameters, Context- and StateVariables to Controls==

Revision as of 08:56, 6 August 2018

Overview

OTX projects can be executed in different ways. The easiest and most comfortable way is the Open Test Player. With the Player Editor, the author can create a simple tester interface with various controls in just a few minutes. OTX procedures can be started and their parameters can be bound to controls using drag & drop. The result can be exported to a PPX file, which can be executed inside the stand-alone available Open Test Player.

The structure and features of the Player Editor are described in the following sections.

Structure

In the Player Editor the graphical user interface for a stand alone executable tester can be designed, see the image below. Each Player Editor consist of one Monitor. A Monitor represents a register tab inside the Open Test Player. A Monitor has a table layout consisting of a number of rows and columns. A monitor contains one or more panels which are arranged inside the table layout rows and columns.

OtfPlayerEditor.png
Easy way to create stand alone executable tester applications

There are three kind of panels:

  • Command Panel
  • Control Panel
  • HMI Panel

The command panel contains the executable commands. A command is represented by a button which can call an OTX procedure. The parameters of such procedure can be set via the controls inside the control panel. There are different controls for different graphical representation of a parameter, context or state variable which are described below. The HMI panel contains an OTX screen which behavior is managed inside the OTX runtime environment.

Monitor

Table Layout

Panels

Command Panel

Control Panel

HMI Panel

Controls

Controls are ...

OtpControlsOverview.jpg
Overview about all OTP controls

All controls have the following general settings:

General Setting Description
Name Unique name of the control
Title Title of the control which will displayed at the top of the control
Title.TI
Title.Value
Channels
Channels.DisplayName
Channels.DisplayName.TI
Channels.DisplayName.Value
Channels.Element
Channels.Element.Datatype
Channels.Element.ElementType
Channels.Element.Index
Channels.Element.Name
Channels.Element.Namespace
Channels.SnapInterval
Highlight
Layout
Layout.Anchor
Layout.Anchor.Bottom
Layout.Anchor.Left
Layout.Anchor.Right
Layout.Anchor.Top
MinSize
MinSize.Height
MinSize.Width
Style
Style.Type
Style.Value
Visible

TextBoxControl

The text box control can be used to input and output character strings. The values of the bound parameters or variables are converted and displayed as a string.

Special Setting Description
TextAlign Horizontal text alignment Auto [Default], Left, Center, Right. Auto means that the text is right aligned if the channel has a unit and left aligned if not.
FontSize Size of the text box font. The font itself can be changed inside the theme.
Multiline TRUE if the text needs more than one line and FALSE if only a single line is needed.

SwitchButtonControl

The switch fits well to set Boolean values.

ComboBoxControl

The ComboBox control is best suited for entering the value of the Enumeration data type. From a fixed list of values exactly one value can be selected.

GaugeControl

Several numerical values (Integer or Float) can be displayed as a pointer within the gauge. The first pointer (channel) becomes large, all others are displayed as small.

KnobControl

The dial can be used to set exactly one numerical value (integer or float).

ChartControl

Multiple numeric values (Integer or Float) can be recorded as data series within the diagram. Each data series gets its own color.

StateIconControl

A The symbol is bound to a Boolean parameter and represents a state.

TableControl

The table control is best suited for displaying values inside of a list or map.

Binding of Parameters, Context- and StateVariables to Controls