Memreset.vi – Measurement Computing UL for NI LabVIEW User Manual
Page 91

Universal Library Virtual Instruments (VIs)
Memory board VIs
MemReset.VI
Resets the memory board pointer to the start of memory. The memory boards are sequential devices. They
contain a counter which points to the 'current' word in memory. Every time a word is read or written, this
counter increments to the next word.
Summary:
Input:
BoardNum
[U32] - The board number assigned when installed with InstaCal. Can
be 0 to 100.
Outputs:
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
(input)
The memory board number assigned when installed with InstaCal. Can be 0 to 100.
BoardNum
(output)
The memory board number assigned when installed with InstaCal. This parameter
can be used serialize VIs such that this VI precedes the next VI whose BoardNum
is attached to this output.
ErrCode
Error code from the Universal Library. Zero if no error occurred. Use the ErrMsg
VI to convert
ErrCode
into a readable string.
Notes
This VI is used to reset the counter back to the start of the memory. Between successive calls to AInScBg.VI
or AInScFg.VI you would call this VI so that the second AInScBg.VI or AInScFg.VI overwrites the data from
the first call. Otherwise the data from the first AInScBg.VI or AInScFg.VI will be followed by the data from
the second AInScBg.VI or AInScFg.VI in the memory on the card.
Likewise, anytime you call MemRead.VI or MemWrite.VI, the counter is left pointing to the next memory
location after the data that you read or wrote. Call MemReset.VI to reset back to the start of the memory
buffer before the next call to AInScBg.VI or AInScFg.VI.
91