DI_7300B_Config | ![]() ![]() ![]() ![]() |
DI_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 input operation.
@ Cards Support
7300A Rev.B
@ Syntax
I16 DI_7300B_Config (U16 CardNumber, U16 PortWidth, U16 TrigSource, U16 WaitStatus, U16 Terminator, U16 I_Cntrl_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_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) DIREQ
P7300_DIREQ_POS: DIREQ signal is rising edge active
P7300_DIREQ_NEG: DIREQ signal is falling edge active
(2) DIACK
P7300_DIACK_POS: DIACK signal is rising edge active
P7300_DIACK_NEG: DIACK signal is falling edge active
(3) DITRIG
P7300_DITRIG_POS: DITRIG signal is rising edge active
P7300_DITRIG_NEG: DITRIG signal is falling edge active
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