SESTILIO
3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
|
Functions | |
CTYPE int DLL | SE_SetPID (int pidID, int controlOutput, int adChannels, int measureUnit, int targetValue, int controlMaxValue, int behavior, int usbDevice) |
Enable SESTILIO as a temperature controller. Four simultaneous temperature controls are performed at the same time. Default PID time base is 10mS. A Proportional-Integral-Derivative controller (PID-controller) is a negative feedback mechanism widely used in control systems. It is the most common feedback control system used in industry, particularly in PI (not action-derived) version. Thanks to an input that determines the actual value, the system will respond to an eventual positive or negative error and tend towards value 0. As the reaction towards the error can be adjusted, this system is very versatile. . More... | |
CTYPE int DLL | SE_SetPIDconstants (int pidID, int constantId, int constantBase, int constantDivider, int usbDevice) |
Set some intrinsic PID constants. More... | |
CTYPE int DLL | SE_SetPIDtimeBase (int timeBaseMultiplier, int usbDevice) |
The PID is a preset value and runs a cycle every 100 mS.This command enables modification of before mentioned value. The cycle time is calculated as follows: T (ms) = N * 100. More... | |
CTYPE unsigned short int DLL | SE_PIDdata (int channel, int usbDevice) |
Read the PID data value. More... | |
Functions to implement a multi channel temperature conroller.
unsigned short int SE_PIDdata | ( | int | pidId, |
int | usbDevice | ||
) |
Read the PID data value.
pidId | PID identifier. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 562 of file sestilio.cpp.
int SE_SetPID | ( | int | pidID, |
int | controlOutput, | ||
int | adChannels, | ||
int | measureUnit, | ||
int | targetValue, | ||
int | controlMaxValue, | ||
int | behavior, | ||
int | usbDevice | ||
) |
Enable SESTILIO as a temperature controller. Four simultaneous temperature controls are performed at the same time. Default PID time base is 10mS. A Proportional-Integral-Derivative controller (PID-controller) is a negative feedback mechanism widely used in control systems. It is the most common feedback control system used in industry, particularly in PI (not action-derived) version. Thanks to an input that determines the actual value, the system will respond to an eventual positive or negative error and tend towards value 0. As the reaction towards the error can be adjusted, this system is very versatile.
.
pidID | PID identifier. 0 - 3 |
controlOutput | Specify the PID output. /ref pidctrl |
adChannels | Specify the used analog channel for the measurement. If more then one channel is set it calculate an average value for the measurement. PID Analog channel selection |
measureUnit | Sets the unit of measure of the target value. When is selected temperature unit you must use as sensor an AD590. PID unit definitions |
targetValue | Target value. |
controlMaxValue | Maximum value to be used for the PID control. |
behavior | 0: PID action on value < target (heating), 1: PID action on target < value (cooling). |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 532 of file sestilio.cpp.
int SE_SetPIDconstants | ( | int | pidID, |
int | constantId, | ||
int | constantBase, | ||
int | constantDivider, | ||
int | usbDevice | ||
) |
Set some intrinsic PID constants.
pidID | PID identifier. 0 - 3 |
constantId | Constant identifier. PID constants identifier |
constantBase | Numerator of the fraction that define the constant. |
constantDivider | Denominator of the fraction that define the constant. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 548 of file sestilio.cpp.
int SE_SetPIDtimeBase | ( | int | timeBaseMultiplier, |
int | usbDevice | ||
) |
The PID is a preset value and runs a cycle every 100 mS.This command enables modification of before mentioned value. The cycle time is calculated as follows: T (ms) = N * 100.
timeBaseMultiplier | Cycle time divisor. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 555 of file sestilio.cpp.