DI_7200_Config Previous topicNext topicFirst topicLast topic

DI_7200_Config

@ Description

Informs PCIS-DASK library of the trigger source, and input mode selected for PCI7200/cPCI7200 with card ID CardNumber. You must call this function before calling function to perform continuous digital input operation.

@ Cards Support

7200

@ Syntax

I16 DI_7200_Config (U16 CardNumber, U16 TrigSource, U16 ExtTrigEn, U16 TrigPol, U16 I_REQ_Pol)

@ Parameter

CardNumber : The card id of the card that want to perform this operation.
TrigSource : The trigger mode for continuous digital input.
Valid values:
        TRIG_INT_PACER:  on-board Programmable pacer
        TRIG_EXT_STROBE: external signal trigger
        TRIG_HANDSHAKE: handshaking
ExtTrigEn : External Trigger Enable, the valid values are:
        DI_WAITING: digital input sampling waits rising or falling edge of I_TRG to start DI
        DI_NOWAITING: input sampling starts immediately
TrigPol : Trigger Polarity, the valid values are:
        DI_TRIG_RISING:  I_TRG is rising edge active
        DI_TRIG_FALLING:  I_TRG is falling edge active
I_REQ_Pol : I_REQ Polarity (for handshaking mode), the valid values are:
        IREQ_RISING: I_REQ is rising edge active
        IREQ_FALLING: I_REQ is falling edge active

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport