Legacy Driver Framework¶
The former metaclass based driver framework and generated Qt UI helper have
been archived under mpylab.device.legacy. They are not used by the active
device drivers or test UIs. The current drivers use the regular
mpylab.device.driver.DRIVER command dictionary implementation instead.
Archived modules:
mpylab.device.legacy.meta_drivermpylab.device.legacy.r_typesmpylab.device.legacy.nw_rs_zvl_metaclassmpylab.device.legacy.Meta_ui
These modules are kept for reference only. New drivers should not be based on them.
mpylab.device.validators¶
This is mpylab.device.validators:
This module provides validator helpers used by parameter handling code. A validator checks whether a value satisfies a given rule.
- author:
Christian Albrecht
- license:
GPL-3 or higher
- class mpylab.device.validators.IN_RANGE(mini, maxi, message='')
Validate that a numeric value is inside a closed interval.
- class mpylab.device.validators.IS_GREATER_EQUAL_THAN(mini, message='')
Validate that a numeric value is greater than or equal to a limit.
- class mpylab.device.validators.IS_GREATER_THAN(mini, message='')
Validate that a numeric value is strictly greater than a limit.
- class mpylab.device.validators.IS_IN_SET(seti, message='')
Validate that a value is contained in an allowed set.
- class mpylab.device.validators.IS_LOWER_EQUAL_THAN(maxi, message='')
Validate that a numeric value is less than or equal to a limit.
- class mpylab.device.validators.IS_LOWER_THAN(maxi, message='')
Validate that a numeric value is strictly smaller than a limit.
mpylab.device.mpy_exceptions¶
This is mpylab.device.mpy_exceptions:
In diesem Modul werden verschiedene Exceptions definiert welche in dem myp.device Modul verwendet werden.
- exception mpylab.device.mpy_exceptions.DriverImplementedError(message='')
DriverImplementedError class.
- exception mpylab.device.mpy_exceptions.GeneralDriverError(message='')
GeneralDriverError class.
- exception mpylab.device.mpy_exceptions.InitError(message='Before Commands can be executed, the DRIVER.Init method must be called')
InitError class.
- exception mpylab.device.mpy_exceptions.Return_TypesError(message='')
Return_TypesError class.
- exception mpylab.device.mpy_exceptions.ValidateError(message='Validators Error', parameter=None, command=None)
ValidateError class.