Device Properties

Device properties are stored in the system and read by the driver when it loads, and then the device is programmed according to these loaded values. The properties are protected during read and write access times, and some of them are pre-defined by the configuration dialog box. Different device's functions are influenced by different properties. These properties are represented by an ID code for an application that calls Advantech API functions. An application can use a default value set by the configuration dialog box, or call Advantech API functions: DRV_DeviceGetProperty and DRV_DeviceSetProperty , to modify individual properties in running time.

USB-4718 supports the following properties:

Property Description
CFG_BoardID gets the board ID of the device.
CFG_BURNTEST gets/sets the property that current temperature measurement can detect the disconnect of the thermo couple.
CFG_CURRENT_4TO20MA_EXCEPTIONSETTING gets/sets the mechanism for returning the data when the input is below 4mA in 4-20mA current measurement.
CFG_FirmWareVersion gets the device firmware version string of the USB-4718.
CFG_EEPROM_RWBYTE gets/sets 32-Bytes data to the module. This property allows user to scratch something in the EEPROM of the module.
CFG_DiChannelCount gets the digital input channel count.
CFG_DiPortCount gets the digital input port counte.
CFG_DoChannelCount gets the digital output channel count.
CFG_DoPortCount gets the digital output port count.