User`s guide

PCIS-DASK Application Hints
55
5.4.1 One-Shot Digital output programming Scheme
This section described the function flow typical of non-buffered single-point
digital output operation. While performing one-shot DO operation, the cards
whose I/O port can be set as input or out put port (PCI-7248, PCI7249 and
PCI-7296) need to include port configuration function at the beginning of your
application.
[Example Code Fragment]
card = Register_Card(PCI_7248, card_number);
//port configured
DIO_PortConfig(card ,Channel_P1A, OUTPUT_PORT);
DIO_PortConfig(card, Channel_P1B, OUTPUT_PORT);
DIO_PortConfig(card, Channel_P1CL, OUTPUT_PORT);
DIO_PortConfig(card, Channel_P1CH, OUTPUT_PORT);
//DO operation
DO_WritePort(card, Channel_P1A, outA_value);
Release_Card(card);
DIO_PortConfig
(
only needed by PCI-7248,
PCI-7249 and PCI-7296
Output data to Line?
YesNo
DO_WriteLineDO_WritePort
Another outputting ?
Yes
No
Port configured as
output port