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-1760 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-1760
CFG_Interrupt gets the IRQ of the currently installed PCI-1760.
CFG_BusNumber gets bus number of the currently installed PCI-1760.
CFG_SlotNumber gets the slot number of the currently installed PCI-1760.
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.
CFG_DiPatternMatchEnabledChannel gets or sets DI channel which issue interrupt when DI pattern match with preset value.
CFG_DiPatternMatchValue gets or sets DI pattern match value.
CFG_DiFilterEnable gets or sets all of the DI filter enabled status.
CFG_DiFilterHiValue gets or sets an effective period that the signal must last for, otherwise the signal will be filtered out as noise.
CFG_DiFilterLowValue gets or sets an effective period that the signal must last for, otherwise the signal will be filtered out as noise.
CFG_DiStatusChangeOnRisingEdge gets or sets Di channels that issue interrupt on rising edge with status changing.
CFG_DiStatusChangeOnFallingEdge gets or sets Di channels that issue interrupt on falling edge with status changing.
CFG_DiCounterEnable gets or sets DI counter function’s status.
CFG_DiCounterMatchEnable gets or sets the DI counter match function’s status.
CFG_DiCounterTrigEdge gets or sets the time when the DI counter issue interrupt, on falling trigger edge or on rising edge.
CFG_DiCounterPreset gets or sets DI counter preset value.
CFG_DiCounterValue gets or sets DI Counter’s matching value. When the counter’s value equal this value, the device will issue a interrupte.
CFG_DiCounterOverflow gets or sets DI counter overflow interrupt function’s status.
CFG_DiCounterDirection gets or sets the Counter up/down counting setting.