User`s manual

Application Hints 67
PCIS-DASK
Digital Output Programming Hints
One-Shot Digital Output
This section describes the function flow typical of non-buffered sin-
gle-point digital output operation. While performing one-shot DO
operation, the cards whose I/O port can be set as input or output
port (PCI-7248, PCI7249, PCI-7296, and PCI-7442) need to
include port configuration function at the beginning of the applica-
tion.
Example code fragments:
NO
DI_WriteLineDI_WritePort
Output data to line?
DIO_PortConfig
[only on PCI-7248, PCI-7249, PCI-7296 and PCI-7442 (TTL)]
DIO_LineConfig (only on PCI-7442 [TTL])
DIO_LinesConfig (only needed by PCI-7442 [TTL])
NO YES
YES
Another output?
Port configured
as output port
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);