itom
|
class summing up the functionality of itom - hardware python plugins More...
#include <pythonPlugins.h>
Classes | |
struct | PyActuatorPlugin |
struct | PyDataIOPlugin |
Static Public Member Functions | |
static void | PyActuatorPlugin_dealloc (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_new (PyTypeObject *type, PyObject *args, PyObject *kwds) |
static int | PyActuatorPlugin_init (PyActuatorPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyActuatorPlugin_repr (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_name (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_getParamList (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_getParamListInfo (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_getExecFuncsList (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_getExecFuncsInfo (PyActuatorPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyActuatorPlugin_getParam (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_getParamInfo (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_setParam (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_getType (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_execFunc (PyActuatorPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyActuatorPlugin_showConfiguration (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_showToolbox (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_hideToolbox (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_connect (PyActuatorPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyActuatorPlugin_disconnect (PyActuatorPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyActuatorPlugin_info (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_setInterrupt (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_calib (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_setOrigin (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_getStatus (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_getPos (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_setPosAbs (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_setPosRel (PyActuatorPlugin *self, PyObject *args) |
static PyObject * | PyActuatorPlugin_userMutex_tryLock (PyActuatorPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyActuatorPlugin_userMutex_unlock (PyActuatorPlugin *self) |
static PyObject * | PyActuatorPlugin_getCurrentStatus (PyActuatorPlugin *self, void *closure) |
static PyObject * | PyActuatorPlugin_getCurrentPositions (PyActuatorPlugin *self, void *closure) |
static PyObject * | PyActuatorPlugin_getTargetPositions (PyActuatorPlugin *self, void *closure) |
static void | paramBaseVectorDeleter (QVector< ito::ParamBase > *obj) |
static void | PyDataIOPlugin_dealloc (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_new (PyTypeObject *type, PyObject *args, PyObject *kwds) |
static int | PyDataIOPlugin_init (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_repr (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_name (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_getParamList (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_getParamListInfo (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_getExecFuncsList (PyActuatorPlugin *self) |
static PyObject * | PyDataIOPlugin_getExecFuncsInfo (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_getParam (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_getParamInfo (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_setParam (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_getType (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_execFunc (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_showConfiguration (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_showToolbox (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_hideToolbox (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_startDevice (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_stopDevice (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_acquire (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_stop (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_getVal (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_copyVal (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_setVal (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_enableAutoGrabbing (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_disableAutoGrabbing (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_setAutoGrabbing (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_getAutoGrabbing (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_setAutoGrabbingInterval (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_getAutoGrabbingInterval (PyDataIOPlugin *self) |
static PyObject * | PyDataIOPlugin_connect (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_disconnect (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_info (PyDataIOPlugin *self, PyObject *args) |
static PyObject * | PyDataIOPlugin_userMutex_tryLock (PyDataIOPlugin *self, PyObject *args, PyObject *kwds) |
static PyObject * | PyDataIOPlugin_userMutex_unlock (PyDataIOPlugin *self) |
static void | PyDataIOPlugin_addTpDict (PyObject *tp_dict) |
static void | PyActuatorPlugin_addTpDict (PyObject *tp_dict) |
Static Public Attributes | |
static PyMemberDef | PyActuatorPlugin_members [] |
static PyMethodDef | PyActuatorPlugin_methods [] |
static PyGetSetDef | PyActuatorPlugin_getseters [] |
static PyTypeObject | PyActuatorPluginType |
static PyModuleDef | PyActuatorPluginModule |
static PyMemberDef | PyDataIOPlugin_members [] |
static PyMethodDef | PyDataIOPlugin_methods [] |
static PyTypeObject | PyDataIOPluginType |
static PyModuleDef | PyDataIOPluginModule |
class summing up the functionality of itom - hardware python plugins
There exist three different types of plugins for the itom program:
The python interfaces for these plugins are declared in this class. For a more detailed description about the plugin interface their handling and so on see the documentation of the according classes AddInInterfaceBase, AddInBase, AddInActuator, AddInDataIO, AddInAlgo and AddInManager.
|
static |
calibrate actuator axi(e)s
[in] | self | the actuator object (python) |
[in] | args | the axi(e)s numbers |
Invokes the calibrate method on an actuator object with the numbers of the axis passed. The status is of the calibration is returned or an error.
|
static |
destructor for actuator object in python
[in] | self |
Destructs an actuator object (plugin), i.e. deletes the according python variable and invokes the closeAddIn function. The object itself is only deleted if the object's reference counter is zero.
|
static |
returns the list of available parameters and additional information about the plugin ExecFunctions
[in] | self | the actuator object (python) |
All ExecFunctions of the plugin are shown or one specific ExecFunctions with additional information as min, max and infostring is shown. This can be useful as there are only few standard parameters for an actuator. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
returns the list of available ExecFunctions' names
[in] | self | the actuator object (python) |
All ExecFunctions of the plugin are shown or one specific ExecFunctions with additional information as min, max and infostring is shown. This can be useful as there are only few standard parameters for an actuator. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
gets a parameter value
[in] | self | the actuator object (python) |
[in] | args | the parameter name |
The getParam method of the plugin is invoked and the actual parameter value is returned. If the parameter doesn't exist an error is returned.
|
static |
returns dictionary with meta information about desired parameter
[in] | self | the actuator object (python) |
[in] | args | the parameter name |
The getParamInfo method of the plugin is invoked
|
static |
returns the list of available parameters
[in] | self | the actuator object (python) |
All parameters of the plugin are shown. This can be useful as there are only few standard parameters for an actuator. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
returns the list of available parameters and additional information about the plugin
[in] | self | the actuator object (python) |
All parameters of the plugin are shown with additional information as min, max and infostring. This can be useful as there are only few standard parameters for an actuator. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
get the current position of axi(e)S
[in] | self | the actuator object (python) |
[in] | args | the axi(e)s numbers |
Reads the position of the axi(e)s passed as parameter.
|
static |
get the status of an actuator
[in] | self | the actuator object (python) |
[in] | args | the axi(e)s numbers |
Returns the status of the axi(e)s passed as parameter.
|
static |
returns the type of the actuator object
[in] | self | the actuator object (python) |
This method simply returns the type of the actuator object
|
static |
returns the list of available parameters
[in] | self | the actuator object (python) |
This method simply close the widget
|
static |
constructor for actuator object (plugin) accessible from python
[in] | self | the according pythonActuator object |
[in] | args | unnamed arguments passed to the constructor in python |
[in] | kwds | keyword parameters passed to the constructor in python |
At first the list of available plugins is searched whether the plugin can be found (by name). If it was found the plugin's manadtory and optional initialization parameters are retrieved and a parameter check is done. In case everything went right a new instance of a plugin is created with the parameters passed to the constructor.
< copy constructor or name only
|
static |
Returns the plugin's name
[in] | self | the plugin object |
Queries the name of a plugin by invoking a getParam on the plugin for the name parameter
|
static |
constructor for actuator object in python
[in] | type |
Creates a new pythonActuator object. The actual actuator object (itom) is only created later.
|
static |
sets the interrupt flag of the actuator in order to interrupt a movement
|
static |
set the origin of axi(e)s
[in] | self | the actuator object (python) |
[in] | args | the axi(e)s |
The axi(e)s current position is set as new origin of the axi(e)s.
|
static |
set a parameter to a new value
[in] | self | the actuator object (python) |
[in] | args | the parameter name and new value |
The setParam method of the plugin is invoked and the parameter is set to the new value in case the passed value is within the limits.
|
static |
set actuator axi(e)s to new absolute position(s)
[in] | self | the actuator object (python) |
[in] | args | the axi(e)s numbers |
The passed parameters are parsed using the helper function parsePosParams and in case a meaningful number of axi(e)s and position(s) are found the setPosAbs method of the actuator object is invoked.
|
static |
set actuator axi(e)s to new relative position(s)
[in] | self | the actuator object (python) |
[in] | args | the axi(e)s numbers |
The passed parameters are parsed using the helper function parsePosParams and in case a meaningful number of axi(e)s and position(s) are found the setPosRel method of the actuator object is invoked.
|
static |
open configuration dialog
[in] | self | the actuator object (python) |
This method simply open the configuration dialog
|
static |
returns the list of available parameters
[in] | self | the actuator object (python) |
This method simply open the widget
|
static |
acquire data with a dataIO device
[in] | self | the dataIO object (python) |
[in] | args | number of acquisitions |
After the device has been initialized and started this method can be used to trigger the acquisition of a data set. The data is then recorded depending on the actually set parameters of the device and can be afterwards retrieved from the device using the getVal method.
|
static |
copy values from a dataIO device to an existing dataObject
[in] | self | the dataIO object (python) |
[in] | args | input buffer |
After a device has been started and an acquisition was triggered the result can be retrieved from the device with the getVal method. As argument the input buffer is passed.
|
static |
destructor for dataIO object in python
[in] | self |
Destructs an instance of a dataIO object (plugin), i.e. deletes the according python variable and invokes the closeAddIn function. The object itself is only deleted if the object's <<<erence counter is zero.
|
static |
disable timer triggered autograbbing of a dataIO device
[in] | self | the dataIO object (python) |
[in] | args | empty |
When the autograbbing is stopped the device will no longer periodically acquire data triggered by an internal timer event. Anyway if the connected live view is still present it will receive data recorded by manual acquisitions. This may be usful when a sort of live view is desired within a measurement loop where a timer based autograbbing would disturbe the measurement process.
|
static |
enable timer triggered autograbbing of a dataIO device
[in] | self | the dataIO object (python) |
[in] | args | empty |
For live viewing of data incoming from a dataIO device the autograbbing must be enabled. It starts a timer which triggers periodically the data acquisition and pushes the new buffer to the output graph(s).
|
static |
return the status of the autograbbing
[in] | self | the dataIO object (python) |
[in] | args | empty |
This method simply returns the status of the autograbbing.
|
static |
returns the list of available parameters and additional information about the plugin ExecFunctions
[in] | self | the actuator object (python) |
All ExecFunctions of the plugin are shown or one specific ExecFunctions with additional information as min, max and infostring is shown. This can be useful as there are only few standard parameters for an dataIO. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
returns the list of available ExecFunctions' names
[in] | self | the actuator object (python) |
All ExecFunctions of the plugin are shown or one specific ExecFunctions with additional information as min, max and infostring is shown. This can be useful as there are only few standard parameters for an actuator. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
return a parameter value
[in] | self | the addIn whose parameter is requested |
[in] | args | the parameter name |
The function tries to retrieve the value of the parameter with the name given in args. If the parameter does not exist NULL is returned. To actually retrieve the value the getParam function of the plugin is invoked.
|
static |
returns dictionary with meta information about desired parameter
[in] | self | the actuator object (python) |
[in] | args | the parameter name |
The getParamInfo method of the plugin is invoked
|
static |
returns the list of available parameters
[in] | self | the dataIO object (python) |
All parameters of the plugin are shown. This can be useful as there are only few standard parameters for an dataIO. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
returns the list of available parameters and additional information about the plugin
[in] | self | the dataIO object (python) |
All parameters of the plugin are shown with additional information as min, max and infostring. This can be useful as there are only few standard parameters for an dataIO. The majority is depending on the actual hardware and accordingly is different for each plugin.
|
static |
returns the type of the dataIO object
[in] | self | the dataIO object (python) |
This method simply returns the type of the dataIO object
|
static |
get values from a dataIO device
[in] | self | the dataIO object (python) |
[in] | args | input buffer |
After a device has been started and an acquisition was triggered the result can be retrieved from the device with the getVal method. As argument the input buffer is passed.
|
static |
returns the list of available parameters
[in] | self | the actuator object (python) |
This method simply close the widget
|
static |
constructor for dataIO object
[in] | self | the according dataIO object |
[in] | args | unnamed arguments passed to the constructor in python |
The dataIO passed must be a valid dataIO object. In case the autoloading of parameters is activated for this plugin the default parameters are loaded.
< copy constructor or name only
|
static |
Returns the plugin's name
[in] | self | the plugin object |
Queries the name of a plugin by invoking a getParam on the plugin for the name parameter
|
static |
constructor for dataIO object in python
[in] | type |
Creates a new pythonDataIO object. The actual dataIO object (itom) is only created later.
|
static |
set a parameter to a new value
[in] | self | the actuator object (python) |
[in] | args | the parameter name and new value |
The setParam method of the plugin is invoked and the parameter is set to the new value in case the passed value is within the limits.
|
static |
write values to a dataIO device
[in] | self | the dataIO object (python) |
[in] | args | output buffer |
Analog to the getVal method this method writes data to a dataIO device (e.g. a DA converter or serial port).The data passed in the output buffer is written to the device according to its current parameters.
|
static |
open configuration dialog
[in] | self | the actuator object (python) |
This method simply open the configuration dialog
|
static |
returns the list of available parameters
[in] | self | the actuator object (python) |
This method simply open the widget
|
static |
start a dataIO device, i.e. prepare it for recording data
[in] | self | the dataIO object (python) |
[in] | args | should be empty |
Start a dataIO device, i.e. prepare it for the acquisition of data. Usually the device is first initialized, then then it is started using this function afterwards a number of acquisitions is done (using PyDataIOPlugin_acquire and PyDataIOPlugin_getVal) and only after the last data set is recorded it is stopped again.
|
static |
stop continuous acquisiiton with a dataIO device
[in] | self | the dataIO object (python) |
|
static |
stop a dataIO device
[in] | self | the dataIO object (python)QString |
[in] | args | should be empty |
Stop a dataIO device, i.e. it is no longer possible to acquire data with it. See also PyDataIOPlugin_startDevice
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |