Analog Output
Overview
Analog output channel functions This group defines all functions to output analog signals on specific channels.
Collaboration diagram for Analog Output:
Functions | |
long | LCAIO_GetOutputSwScalingParam (dev_hdl OutChanHdl, double *pScalingFactor, double *pScalingOffset) |
Query software scaling parameters. More... | |
long | LCAIO_GetOutputValue (dev_hdl OutChanHdl, double *pfValue) |
Return the output value of this channel. More... | |
long | LCAIO_SetOutputSwScalingOn (dev_hdl OutChanHdl, int ScalingOn) |
Enable / disable software scaling. More... | |
long | LCAIO_SetOutputSwScalingParam (dev_hdl OutChanHdl, double ScalingFactor, double ScalingOffset) |
Set software scaling parameters. More... | |
long | LCAIO_WriteOutput (dev_hdl OutChanHdl, double fValue) |
Set analog output value of single channel. More... | |
Function Documentation
long 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)
long 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
long 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
long 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)
long 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