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-4751 supports the following properties:

 

Property Description
CFG_BoardID gets the board ID of the device.
CFG_FirmWareVersion gets the device firmware version string of the USB-4751.
CFG_DioChannelDirection gets or sets DIO channel directions ( IN / OUT ).
CFG_DioPresetChanDir gets or sets DIO channel directions ( IN / OUT ) on Power-On.
CFG_DoPresetValue gets or sets DO status on Power-On.
CFG_DiInterruptSupportedChannel gets DI Interrupt supported channel.
CFG_DiInterruptTriggerOnRisingEdge gets or sets DI channels which issue interrupt on RISING Edge.
CFG_DiInterruptTriggerOnFallingEdge gets or sets DI channels which issue interrupt on FALLING Edge.
CFG_InterruptTriggerSource gets or sets DI Interrupt Mode (0:Disable 1:No gate 2:PC4 Gate)
CFG_DiChannelCount gets the total count of DI channels.
CFG_DoChannelCount gets the total count of DO channels.
CFG_DiPortCount gets the total count of DI ports.
CFG_DoPortCount gets the total count of DO ports.
CFG_CntrChannelCapability gets the functions which can be implemented by the counters: Event Counter; Frequency Measurement; Pulse Output;PWM Output;Frequency Output;
CFG_CntrResolution Gets the counter resolution.
CFG_CntrResetValue gets the counter reset value.
CFG_CntrSupportedGateMode To retrieve the supported gate mode, usually used for event counting.
CFG_CntrInternalClockFreq gets the internal clock frequency
CFG_CntrSupportedCountEdge To check the count edge supported by the installed device.
CFG_CntrChannelCount gets the counter channel count