Memory board vis, Miscellaneous vis – Measurement Computing UL for NI LabVIEW User Manual
Page 12
Overview of the Universal Library VIs
Memory board VIs
Memory board VIs
The memory board VIs read from, write to, and control memory boards (MEGA-FIFO). The most common
use for the memory boards is to store large amounts of data from an A/D board via a DT-Connect cable
between the two boards. To do this, you should use the
EXTMEMORY
option with AInScBg.VI, AInScFg.VI,
APretrBg.VI, or APretrFg.VI.
After data is transferred to the memory board, you can use the memory VIs to retrieve the data.
MemSetDT.VI - Sets DT-Connect mode on a memory board
The memory boards have a DT-Connect interface which can be used to transfer data through a cable between
two boards rather than through the PC's system memory. The DT-Connect port on the memory board can be
configured as either an input (from an A/D) or as an output (to a D/A). This VI configures the port.
MemReset.VI - Resets the memory board address
The memory board is organized as a sequential device. When data is transferred to the memory board it is
automatically put in the next address location. This VI resets the current address to the location 0.
MemRead.VI - Reads data from a memory board.
Reads a specified number of points from a memory board starting at a specified address.
MemWrite.VI - Writes data to a memory board.
Writes a specified number of points to a memory board starting at a specified address.
MemRdPrt.VI - Reads data collected with APretrBg.VI or APretrFg.VI.
Both APretrBg.VI and APretrFg.VI write the pre-triggered data to the memory board in a shifted order. This
VI shifts the data and returns it in the correct order.
Miscellaneous VIs
These VIs perform error handling, configuration, and other miscellaneous operations.
ErrHdlng.VI - Selects the type of error handling.
The Universal Library has a number of different methods of handling errors. This VI selects which of these
methods will be used with all subsequent library calls. The options include stopping the program when an
error occurs and printing error messages.
ErrMsg.VI - Returns an error message for a given error.
All library VIs return error codes. This VI converts an error code to an error message.
GetBoard.VI - Get the board name.
Returns the name of the selected target board.
GetCfg.VI - Get configuration options.
Extracts hardware configuration options from board configuration file.
GetStatus.VI - Returns the status of background operations.
After a background operation is started your program will need to periodically check on its progress. This VI
returns the current status of the process that is running.
InByte.VI - Read one byte.
Reads one byte of data from the specified port.
InWord.VI - Read one word.
Reads one word of data from the specified port.
12