Analog output channel functions This group defines all functions to output analog signals on specific channels.
◆ LCAIO_GetOutputSwScalingParam()
LCAIO_Func long LCAIO_CALL LCAIO_GetOutputSwScalingParam |
( |
dev_hdl |
OutChanHdl, |
|
|
double * |
pScalingFactor, |
|
|
double * |
pScalingOffset |
|
) |
| |
Query software scaling parameters.
- Parameters
-
[in] | OutChanHdl | Handle to analog output channel |
[out] | pScalingFactor | The scaling factor multiplied with field value |
[out] | pScalingOffset | The scaling offset added to field value |
- Return values
-
ERR_NOERR | indicates success |
-ERR_NOTSUP | Linear scaling not supported (i.e. if channel uses a different kind of scaling like PT100 scaling) |
- See also
- LCAIO_SetOutputSwScalingParam(), LCAIO_SetOutputSwScalingOn()
◆ LCAIO_GetOutputValue()
LCAIO_Func long LCAIO_CALL LCAIO_GetOutputValue |
( |
dev_hdl |
OutChanHdl, |
|
|
double * |
pfValue |
|
) |
| |
Return the output value of this channel.
- Parameters
-
[in] | OutChanHdl | Handle to analog output channel |
[in] | pfValue | Returns the actual set output value |
- Returns
- Error code - ERR_NOERR indicates success
◆ LCAIO_SetOutputSwScalingOn()
LCAIO_Func long LCAIO_CALL LCAIO_SetOutputSwScalingOn |
( |
dev_hdl |
OutChanHdl, |
|
|
int |
ScalingOn |
|
) |
| |
Enable / disable software scaling.
- Parameters
-
[in] | OutChanHdl | Handle to analog output channel |
[in] | ScalingOn | 1 = Scaling on, 0 = Scaling off |
- Returns
- Error code - ERR_NOERR indicates success
◆ LCAIO_SetOutputSwScalingParam()
LCAIO_Func long LCAIO_CALL LCAIO_SetOutputSwScalingParam |
( |
dev_hdl |
OutChanHdl, |
|
|
double |
ScalingFactor, |
|
|
double |
ScalingOffset |
|
) |
| |
Set software scaling parameters.
These parameters are used to scale the measured value from device. These scaling parameters are independent from the device scaling parameters and the scaling is performed on the local machine. Scaled Value = (Process Value * Scaling Factor) + Scaling Offset. The default value for Scaling Factor is 1 and for Scaling Offset is 0.
- Parameters
-
[in] | OutChanHdl | Handle to analog output channel |
[in] | ScalingFactor | The scaling factor to multiply with field value |
[in] | ScalingOffset | The scaling offset ro add to field value |
- Return values
-
ERR_NOERR | indicates success |
-ERR_NOTSUP | Setting linear scaling parameters not supported (i.e. if channel uses a different kind of scaling like PT100 scaling) |
- See also
- LCAIO_GetOutputSwScalingParam(), LCAIO_SetOutputSwScalingOn()
◆ LCAIO_WriteOutput()
LCAIO_Func long LCAIO_CALL LCAIO_WriteOutput |
( |
dev_hdl |
OutChanHdl, |
|
|
double |
fValue |
|
) |
| |
Set analog output value of single channel.
- Parameters
-
[in] | OutChanHdl | Handle to analog output channel |
[in] | fValue | The anlog output value to set |
- Returns
- Error code - ERR_NOERR indicates success