Error processing – Yokogawa PC-Based MX100 User Manual

Page 258

Advertising
background image

4-11

IM MX190-01E

MX100 - Visual Basic

4

Collective Setting of Setup Data Other Than Channel Setup Data
setSystemConfigMX(comm, sysinfo)
The contents of the specified MXSystemInfo structure are assigned to the MX100.

Setting of the Channel Setup Data
setChConfigMX(comm, chconfig)
The contents of the specified MXChConfig structure are assigned to the MX100.

Setting a DC Voltage Range to the Channel
setVOLTMX(comm, DAQMX_RANGE_VOLT_20MV, 1, 1, 0, 0, 0, 0, 0)
Sets channel number 1 to DC voltage range 20 mV. Scaling is not used.

Error Processing

• Most functions return the result of the function process using an error number (0 if

successful).

• The function toErrorMessageMX can be used to get the error message string

corresponding to the error number. The function getMaxLenErrorMessageMX can
be used to get the maximum length of the error message string.

• The function getLastErrorMX can be used to get the errors from the MX100.
• If an invalid data error occurs in the settings, the setting item number of the

detected error is retrieved by the function.

4.2 Programming - MX100/Visual Basic -

Advertising