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.

 

PCI-1712/L supports the following properties:

 

Property Description
CFG_BoardID gets the board ID of the device.
CFG_BaseAddress gets the base address of the currently installed PCI-1712/L.
CFG_Interrupt gets the IRQ of the currently installed PCI-1712/L.
CFG_BusNumber gets bus number of the currently installed PCI-1712/L.
CFG_SlotNumber gets the slot number of the currently installed PCI-1712/L.
CFG_DiChannelCount gets the digital input channel count of the currently installed PCI-1712/L.
CFG_DoChannelCount gets the digital output channel count of the currently installed PCI-1712/L.
CFG_DiPortCount gets the digital input port count of the currently installed PCI-1712/L.
CFG_DoPortCount gets the digital output port count of the currently installed PCI-1712/L.
CFG_CntrChannelCapability gets the counter capability.
CFG_CntrInternalClockFreq gets  the internal clock frequency used for pulse out, or set the internal clock frequency used for pwm in and frequency in.
CFG_AoRangeList gets the AO range spec list of current device. (Only for PCI-1712)
CFG_AoChanRange gets or sets the current AO range setting of one channel. (Only for PCI-1712)
CFG_AIChanConfig sets or gets the currently analog input channel connection configuration of PCI-1712/L.
CFG_AIPacerRate sets or gets the current pacer rate of the analog input operation of PCI-1712/L.
CFG_AOPacerRate sets or gets the current pacer rate of the analog output operation.(Only for PCI-1712)