Event Type

PCI-1742U supports the following events:

Event Type Description
ADS_EVT_AI_LOBUFREADY

Generally, in the high speed analog input operation, user buffer is divided into two equal parts, called low buffer and high buffer. Data from the device will fill them separately.
This event will be triggered when high speed AI operation is started by DRV_FAIIntStart, DRV_FAIIntScanStart, or DRV_FAIDmaExStart and Low buffer is full.
Applications can call DRV_FAICheck to check which buffer is full, and then call DRV_FAITransfer to take away the data in this buffer. If the data hasn't been taken away in time, the ADS_EVT_AI_OVERRUN will occur.

ADS_EVT_AI_HIBUFREADY Generally, in the high speed analog input operation, user buffer is divided into two equal parts, called low buffer and high buffer. Data from the device will fill them separately.
This event will be triggered when high speed AI operation is started by DRV_FAIIntStart, DRV_FAIIntScanStart, or DRV_FAIDmaExStart and High buffer is full.
Applications can call DRV_FAICheck to check which buffer is full, and then call DRV_FAITransfer to take away the data in this buffer. If the data hasn't been taken away in time, the ADS_EVT_AI_OVERRUN will occur.
ADS_EVT_AI_TERMINATED Triggered when high speed AI operation is started by DRV_FAIIntStart, DRV_FAIIntScanStart, or DRV_FAIDmaExStartand one of below condition is true :
1. An high speed analog input operation finishes.
2. Applications call DRV_FAITerminate.
3. USB device is removed (unplugged).
ADS_EVT_AI_INTERRUPT

Triggered when a certain number of interrupts occur. The number is specified when applications call DRV_EnableEvent.

ADS_EVT_AI_OVERRUN Triggered when high speed AI operation is started by DRV_FAIIntStart, DRV_FAIIntScanStart, or DRV_FAIDmaExStart and one of below condition is true :
1. the data in buffer has not been taken away in time after an ADS_EVT_AI_LOBUFREADY or ADS_EVT_AI_HIBUFREADY occurs. If ADS_EVT_AI_OVERRUN occurs, the data will be overwritten by new ones.

See also

PT_EnableEvent