DO_7300B_Config Previous topicNext topicFirst topicLast topic

DO_7300B_Config

@ Description

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

@ Cards Support

7300A Rev.B

@ Syntax

I16 DO_7300B_Config (U16 CardNumber, U16 PortWidth, U16 TrigSource, U16 WaitStatus, U16 Terminator, U16 O_Cntrl_Pol, U32 FifoThreshold)

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
PortWidth : The width of digital output port (PORT B). The valid value is 0, 8, 16, or 32.
TrigSource : The trigger mode for continuous digital output.
        Valid values:
        TRIG_INT_PACER:  on-board programmable pacer timer1
        TRIG_CLK_10MHz: 10MHz clock
        TRIG_CLK_20MHz: 20MHz clock
        TRIG_HANDSHAKE: handshaking mode
        TRIG_DO_CLK_TIMER_ACK: burst handshaking mode by using timer1 output as output clock
        TRIG_DO_CLK_10M_ACK: burst handshaking mode by using 10MHz clock as output clock
        TRIG_DO_CLK_20M_ACK: burst handshaking mode by using 20MHz clock as output clock
WaitStatus : DO Wait Status, the valid values are:
        P7300_WAIT_NO: digital output starts immediately
        P7300_WAIT_TRG: digital output waits rising or falling edge of O_TRG to start
        P7300_WAIT_FIFO: delay output data until FIFO is not almost empty
        P7300_WAIT_BOTH: delay output data until O_TRG active and FIFO is not almost empty
Terminator : PortB Terminator On/Off, the valid values are:
        P7300_TERM_ON: terminator on
        P7300_TERM_OFF: terminator off
O_Cntrl_Pol : The polarity configuration. This argument is an integer expression formed from one or more of the manifest constants defined in dask.h.
                    There are three groups of constants:
        (1) DOREQ
                P7300_DOREQ_POS: DOREQ signal is rising edge active
                P7300_DOREQ_NEG: DOREQ signal is falling edge active
        (2) DOACK
                P7300_DOACK_POS: DOACK signal is rising edge active
                P7300_DOACK_NEG: DOACK signal is falling edge active
        (3) DOTRIG
                P7300_DOTRIG_POS: DOTRIG signal is rising edge active
                P7300_DOTRIG_NEG: DOTRIG signal is falling edge active
FifoThreshold : programmable almost empty threshold of both PORTB FIFO and PORTA FIFO (if output port width is 32).

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport