SESTILIO  3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
Temperature control functions

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...
 

Detailed Description

Functions to implement a multi channel temperature conroller.

Function Documentation

◆ SE_PIDdata()

unsigned short int SE_PIDdata ( int  pidId,
int  usbDevice 
)

Read the PID data value.

Parameters
pidIdPID identifier.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_SetPID, SE_SetPIDconstants.
Returns
16 bit data.

Definition at line 562 of file sestilio.cpp.

◆ SE_SetPID()

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.
.

Parameters
pidIDPID identifier. 0 - 3
controlOutputSpecify the PID output. /ref pidctrl
adChannelsSpecify 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
measureUnitSets the unit of measure of the target value. When is selected temperature unit you must use as sensor an AD590. PID unit definitions
targetValueTarget value.
controlMaxValueMaximum value to be used for the PID control.
behavior0: PID action on value < target (heating), 1: PID action on target < value (cooling).
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_SetPIDconstants, SE_SetPIDtimeBase.
Returns
Operation status. Operation Status
// Set a temperature control using as output DAC0 and as input AD channel 0 and 1 (average will be performed)
// Target temperature will be 270 Kelvin.
// AD590 are used for the temperature measurement.
// Set a temperature control using a power opto-isolated output (PWM mode) and as input AD channel 0
// Target temperature will be 270 Kelvin.
// AD590 are used for the temperature measurement.
SE_SetPID(0, SE_PID_OUT_PWM, SE_PID_CHAN_00, SE_PID_UNIT_MK, 270000, 255, 1, usbDevice);

Definition at line 532 of file sestilio.cpp.

◆ SE_SetPIDconstants()

int SE_SetPIDconstants ( int  pidID,
int  constantId,
int  constantBase,
int  constantDivider,
int  usbDevice 
)

Set some intrinsic PID constants.

Parameters
pidIDPID identifier. 0 - 3
constantIdConstant identifier. PID constants identifier
constantBaseNumerator of the fraction that define the constant.
constantDividerDenominator of the fraction that define the constant.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_SetPID, SE_SetPIDtimeBase.
Returns
Operation status. Operation Status

Definition at line 548 of file sestilio.cpp.

◆ SE_SetPIDtimeBase()

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.

Parameters
timeBaseMultiplierCycle time divisor.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_SetPID, SE_SetPIDconstants.
Returns
Operation status. Operation Status

Definition at line 555 of file sestilio.cpp.