Cdaqmxaopwmdata::setaopwm, Cdaqmxaopwmdata::setmxaopwmdata, Cdaqmxaopwmdata::toaopwmvalue – Yokogawa PC-Based MX100 User Manual
Page 97
![background image](/manuals/360310/97/background.png)
2-74
IM MX190-01E
CDAQMXAOPWMData::setAOPWM
Syntax
void setAOPWM(int aopwmNo, int bValid, int iAOPWMValue);
Parameters
aopwmNo
Specify the AO/PWM data number.
bValid
Specify the Boolean value.
iAOPWMValue
Specify the output data value.
Description
Stores the specified value in the field indicated by the specified data number of the
data member.
If the data number is set to the constant for “Specify All AO/PWM data numbers,”
the same value is stored to all data.
Reference
getMXAOPWM
CDAQMXAOPWMData::setMXAOPWMData
Syntax
void setMXAOPWMData(MXAOPWMData * pMXAOPWMData);
Parameters
pMXAOPWMData
Specify AO/PWM data.
Description
Sets the data in a structure.
Stores the contents of the specified structure in the data member.
If not specified, the data member is initialized.
Reference
initMXAOPWMData
CDAQMXAOPWMData::toAOPWMValue
Syntax
static int toAOPWMValue(double realValue, int iRangeAOPWM);
Parameters
realValue
Specify the output value.
iRangeAOPWM Specify the range type of the AO or PWM range.
Description
Converts the output values to output data values according to the specified range
type.
Returns 0 if the range type is invalid.
Return value
Returns the output data value.
2.5 Details of the MX100 Class