Outbyte.vi / outword.vi – Measurement Computing UL for NI LabVIEW User Manual
Page 108

Universal Library Virtual Instruments (VIs)
Miscellaneous VIs
OutByte.VI / OutWord.VI
Writes a byte or a word to a hardware register on a board.
Summary:
Inputs:
BoardNum
[U32] - The board number assigned when installed with InstaCal. Can
be 0 to 100.
PortNum
[U32] - Register on the board to set.
PortVal
[U32] - Value to write to register.
Outputs:
ErrCode
[I32] - Error code. See ErrMsg.VI
Arguments:
BoardNum
The board number associated with a board when it was installed.
PortNum
Register within the board. Boards are set to a particular base address. The registers
on the boards are at addresses that are offsets from the base address of the board
(BaseAdr+0, BaseAdr+2, etc). This argument should be set to the offset for the
desired register. This function takes care of adding the base address to the offset,
so that the board's address can be changed without changing the code.
PortVal
Value that will be written to the register
Notes:
OutByte.VI is used to write to 8-bit ports. OutWord.VI is used to write to 16-bit ports.
108