Setaomx – Yokogawa PC-Based MX100 User Manual
Page 298

5-40
IM MX190-01E
setAOMX
Syntax
int setAOMX(DAQMX daqmx, int iRangeAO, int startChNo, int
endChNo, int spanMin, int spanMax);
Declaration
Public Declare Function setAOMX Lib "DAQMX"(ByVal daqmx As
Long, ByVal iRangeAO As Long, ByVal startChNo As Long, ByVal
endChNo As Long, ByVal spanMin As Long, ByVal spanMax As Long)
As Long
Parameters
daqmx
Specify the device descriptor.
iRangeAO
Specify the AO range type from the range type.
startChNo
Specify the start channel number.
endChNo
Specify the end channel number.
spanMin
Specify the span minimum.
spanMax
Specify the span maximum.
Description
Set the specified channel range to the AO range.
• If the minimum and maximum values of the span are equal, the span is
considered to be ommitted.
• The setup data is retrieved collectively, changed, and sent collectively.
• Channels from unsupported modules are ignored.
• Output channel data is also changed.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX::getMXConfig
CDAQMX::setMXConfig
CDAQMXConfig::setAO
5.1 Details of Functions - MX100 (Visual C/Visual Basic) -