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]OutChanHdlHandle to analog output channel
[out]pScalingFactorThe scaling factor multiplied with field value
[out]pScalingOffsetThe scaling offset added to field value
Return values
ERR_NOERRindicates success
-ERR_NOTSUPLinear scaling not supported (i.e. if channel uses a different kind of scaling like PT100 scaling)
See also
LCAIO_SetOutputSwScalingParam(), LCAIO_SetOutputSwScalingOn()
long LCAIO_GetOutputValue ( dev_hdl  OutChanHdl,
double *  pfValue 
)

Return the output value of this channel.

Parameters
[in]OutChanHdlHandle to analog output channel
[in]pfValueReturns 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]OutChanHdlHandle to analog output channel
[in]ScalingOn1 = 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]OutChanHdlHandle to analog output channel
[in]ScalingFactorThe scaling factor to multiply with field value
[in]ScalingOffsetThe scaling offset ro add to field value
Return values
ERR_NOERRindicates success
-ERR_NOTSUPSetting linear scaling parameters not supported (i.e. if channel uses a different kind of scaling like PT100 scaling)
See also
LCAIO_GetOutputSwScalingParam(), LCAIO_SetOutputSwScalingOn()
long LCAIO_WriteOutput ( dev_hdl  OutChanHdl,
double  fValue 
)

Set analog output value of single channel.

Parameters
[in]OutChanHdlHandle to analog output channel
[in]fValueThe anlog output value to set
Returns
Error code - ERR_NOERR indicates success