Setchoicemx – Yokogawa PC-Based MX100 User Manual
Page 306
![background image](/manuals/360310/306/background.png)
5-48
IM MX190-01E
setChoiceMX
Syntax
int setChoiceMX(DAQMX daqmx, int startChNo, int endChNo, int
idleChoice, int errorChoice, int presetValue);
Declaration
Public Declare Function setChoiceMX Lib "DAQMX"(ByVal daqmx As
Long, ByVal startChNo As Long, ByVal endChNo As Long, ByVal
idleChoice As Long, ByVal errorChoice As Long, ByVal
presetValue As Long) As Long
Parameters
daqmx
Specify the device descriptor.
startChNo
Specify the start channel number.
endChNo
Specify the end channel number.
idleChoice
Specify the selected value when idling.
errorChoice
Specify the selected value when an error occurs.
presetValue
Specify the output value if the selected value is the “specified
value.”
Description
Sets the output during idling and when errors occur on the output channel data.
• The user specified output values are specified with integers in the same manner
as the data value and span.
• The setup data is retrieved collectively, changed, and sent collectively.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX::getMXConfig
CDAQMX::setMXConfig
CDAQMXChConfig::setChoice
5.1 Details of Functions - MX100 (Visual C/Visual Basic) -