Dcfgbit.vi – Measurement Computing UL for NI LabVIEW User Manual
Page 72

Universal Library Virtual Instruments (VIs)
Digital I/O VIs
DCfgBit.VI
Configures a specific digital bit within a digital port for input or output. This function treats all DIO ports on a
board as a single port (AUXPORT). This function is not supported by 8255 type DIO ports. Please refer to
board-specific information for details.
Summary:
Input:
BoardNum
[U32] - The board number assigned when installed with InstaCal. Can
be 0 to 100.
PortType
[I32] - Digital I/O port containing the bit to configure.
BitNum
- The bit number to configure as input or output.
Bit Direction
[TF] -
DIGITALOUT
or
DIGITALIN
Output:
BoardNum
[U32] - The board number assigned when installed with InstaCal. Can
be 0 to 100. Can be used to pass
BoardNum
parameter to another VI.
ErrCode
[I32] - Error code. See ErrMsg.VI
Arguments:
BoardNum
The board number associated with a board when it was installed with InstaCal.
PortType
Specifies the digital I/O port whose bit to configure. The DCfgBit.VI supports
AUXPORT
types only.
BitNum
The bit number to configure as input or output. Can be 0 to 7 for
AUXPORT
types.
Bit Direction
DIGITALOUT (True) or DIGITALIN (False - default) sets the digital bit as input
or output.
BoardNum
(Out)
The board number used when installed with InstaCal. This parameter can be used
to serialize VIs such that this VI precedes the next VI whose
BoardNum
is attached
to this output.
ErrCode
Error code returned from the Universal Library. Zero if no error occurred. Use
ErrMsg.VI to convert
ErrCode
into a readable string.
72