Project

General

Profile

Control Objects » History » Version 1

Ohlsson, Staffan, 19/01/2012 05:40 PM

1 1 Ohlsson, Staffan
h1. Control Objects
2 1 Ohlsson, Staffan
3 1 Ohlsson, Staffan
h2. What are control objects?
4 1 Ohlsson, Staffan
5 1 Ohlsson, Staffan
Control objects are an abstraction over the different control systems used at ESRF (tango, taco, spec, sardana). 
6 1 Ohlsson, Staffan
7 1 Ohlsson, Staffan
h2. Writing a Control Object
8 1 Ohlsson, Staffan
9 1 Ohlsson, Staffan
* Control objects must inherit from the class Framework4.Control.Core.COBject.CObjectBase
10 1 Ohlsson, Staffan
* The /signals/ class variable is an array of Signal objects the control object can emit
11 1 Ohlsson, Staffan
* The /slots/ class variable is an array of Slot objects the control object has 
12 1 Ohlsson, Staffan
13 1 Ohlsson, Staffan
Signal and Slot classes are found in Framework4.Control.Core.CObject
14 1 Ohlsson, Staffan
15 1 Ohlsson, Staffan
These signals and slots are used by the framework to determine whether a connection with a given brick is possible. They must be compatible with which signals and slots the brick expects.
16 1 Ohlsson, Staffan
17 1 Ohlsson, Staffan
Control objects also need a template which describes which parameters the control objects accepts. The template is used by Beacon, so the user can create the XML config file for the control object graphically.
18 1 Ohlsson, Staffan
19 1 Ohlsson, Staffan
You may want to learn more about the configuration template format.