GxIviFgen_SetupStreaming

Purpose

Configures the ARB streaming interrupt by setting which ARB groups are used as a source for an interrupt and setting the interrupt call back function and its optional parameter.

Syntax

ViStatus GxIviFgen_SetupStreaming (vi, wGroups, pInterruptCallback)

Parameters

Name
Type
Description
vi
ViSession
Handle to a GX1632e board.
wGroups
ViInt16
Set which groups can cause an interrupt, encoded in 4 bits of wGroups, bit 0 corresponds to Group A and bit 3 corresponds to Group D
pInterruptCallback
Gt_EventCallback
The user defined callback function for the interrupt handler

Comments

This function sets the board up for streaming operation. This function is used to select which ARB groups will cause an interrupt to be generated.

When an ARB group is in streaming mode, it will generate an MSI interrupt after data has been transferred from the PC to the board if there is room for more data.  If there is not enough room for more data, the interrupt will be sent as soon as more room becomes available.

This function assigns a user defined call back function (pInterruptCallback) to the PCI interrupt. The user defined callback function must use the following function prototype:

LONG CallBackFunction (SHORT nHandle, SHORT enEventType, LPVOID pvUserData)