cbDConfigPort()

Configures a digital port as input or output.

This function is for use with ports that may be programmed as input or output, such as those on the 82C55 chips and 8536 chips. Refer to the 82C55A data sheet (82C55A.pdf) for details of chip operation. This document is installed in the Documents subdirectory where the UL is installed. Refer to the Zilog 8536 manual for details of 8536 chip operation.

Refer to the "Digital Input/Output Hardware" topic for additional information about the UL digital I/O functions.

Function Prototype

C/C++

int cbDConfigPort(int BoardNum, int PortType, int Direction)

Visual Basic

Function cbDConfigPort(ByVal BoardNum&, ByVal PortType&, ByVal Direction&) As Long

Arguments

BoardNum

The number associated with the board when it was installed with InstaCal or created with cbCreateDaqDevice(). BoardNum may be 0 to 99.

PortType

The port to configure. The port must be configurable. For most boards, AUXPORT is not configurable. Check the board-specific information in the Universal Library User's Guide for details.

Direction

DIGITALOUT or DIGITALIN configures the entire eight or four bit port for output or input.

Returns

Note