DI_7300A_Config Previous topicNext topicFirst topicLast topic

DI_7300A_Config

@ Description

Informs PCIS-DASK library of the trigger source, port width, etc. selected for PCI7300A Rev.A/cPCI7300A Rev.A card with card ID CardNumber. You must call this function before calling function to perform continuous digital input operation.

@ Cards Support

7300A Rev.A

@ Syntax

I16 DI_7300A_Config (U16 CardNumber, U16 PortWidth, U16 TrigSource, U16 WaitStatus, U16 Terminator, U16 I_REQ_Pol, BOOLEAN ClearFifo, BOOLEAN DisableDI)

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
PortWidth : The width of digital input port (PORT A). The valid value is 0, 8, 16, or 32.
TrigSource : The trigger mode for continuous digital input.
Valid values:
        TRIG_INT_PACER: on-board programmable pacer timer0
        TRIG_EXT_STROBE: external signal trigger
        TRIG_HANDSHAKE: handshaking
        TRIG_CLK_10MHz: 10MHz clock
        TRIG_CLK_20MHz: 20MHz clock
WaitStatus : DI Wait Trigger Status, the valid values are:
        P7300_WAIT_NO: input sampling starts immediately
        P7300_WAIT_TRG: digital input sampling waits rising or falling edge of I_TRG to start DI
Terminator : PortA Terminator On/Off, the valid values are:
        P7300_TERM_ON: terminator on
        P7300_TERM_OFF: terminator off
I_REQ_Pol : I_REQ Polarity (for handshaking mode). This function is not implemented on PCI-7300A Rev.A/cPCI7300A Rev.A card. You can ignore this argument.
ClearFifo : FALSE: retain the FIFO data
                TRUE: clear FIFO data before perform digital input
DisableDI : FALSE: digital input operation still active after DMA transfer complete. The input data still put into FIFO
                 TRUE: disable digital input operation immediately when DMA transfer complete

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport