Error processing – Yokogawa PC-Based MX100 User Manual
Page 37
![background image](/manuals/360310/37/background.png)
2-14
IM MX190-01E
Note
The setup data can also be retrieved using the talkConfig member function and the
getChConfig member function. The talkConfig function is used to declare the retrieval
of the setup data and retrieve the system configuration data, status, and network
information data. Then, the getChConfig function is used to retrieve channel setup
data in units of channels.
Collective Setting of Setup Data
setConfig(configdata)
The data below can be set by the collective setting of setup data.
• System configuration data: See CDAQMXSysInfo class (section 2.5).
• Basic settings: See the CDAQMXConfig class (section 2.5).
Setting a DC Voltage Range for the Channels
setVOLT(1, DAQMX_RANGE_VOLT_20MV)
Sets channel number 1 to DC voltage range 20 mV. Scaling is not used.
First, the setup data is retrieved collectively. Next, the change described above is
made. Then, the data is set on the MX100 collectively. Use similar steps when
making changes to the settings.
Get the setup data
collectively
Change
the setup data
CDAQMXConfig::setVOLT, etc.
(see "Setup Change" on page 2-6.)
CDAQMX::setConfig
CDAQMX::getConfig
Set the data
collectively
Error Processing
• Most member functions return the result of the function process using an error
number (0 if successful).
• The member function CDAQMX::getErrorMessage can be used to get the error
message string corresponding to the error number. The member function
CDAQMX::getMaxLenErrorMessage can be used to get the maximum length of
the error message string.
• The member function CDAQMX::getLastError can be used to get the errors from
the MX100.
2.3 Programming - MX100/Visual C++