Owner manual
19-34 IM MX190-01E
CDAQDA100::setRange
Syntax
int setRange(int chType, int chNo, int iRange, int spanMin =
0, int spanMax = 0, int scaleMin = 0, int scaleMax = 0, int
scalePoint = 0, int bFilter = DAQDARWIN_VALID_OFF, int iItem =
DAQDARWIN_POWERITEM_P1, int iWire = DAQDARWIN_WIRE_1PH2W);
Parameters
chType Specify the channel type.
chNo Specify the channel number.
iRange Specify the range type.
spanMin Specify the left value of the span.
spanMax Specify the right value of the span.
scaleMin Specify the left value of the scale.
scaleMax Specify the right value of the scale.
scalePoint Specify the decimal point position for scaling.
bFilter Specify ON/OFF for the filter using a Boolean value.
iItem Specify the power measurement parameter.
iWire Specify the power connection method.
Description
Sets the range.
If the left and right values are the same, the span or scale designation is considered
omitted. The ON/OFF specification for the filter parameter is only valid for the pulse
range. The power measurement item and power connection method parameters
are only valid for the power monitoring range. If the channel type is set to the
constant for “Specify all measurement channel types,” all subunits are processed. If
the channel number is set to the constant for “Specify all channel numbers,” all
channels within the channel type are processed. Updates the status if successful.
Return value
Returns an error number.
Error:
Not support Unsupported range type.
Reference
chNumMax getClassSysInfo measInfoCh setDI setMA setPOWER
setPULSE setRTD setSKIP setSTRAIN setTC setVOLT
CDAQDARWINSysInfo::isExist
19.6 Details of the DARWIN Class