# MemReset()

Resets the memory board reference to the start of the data. 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.

Member of the MccBoard class.

## Function Prototype

VB .NET

Public Function MemReset() As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo MemReset

## Returns

- An ErrorInfo object that indicates the status of the operation.

## Notes

This method is used to reset the counter back to the start of the memory. Between successive calls to AInScan(), you should call this method so that the second AInScan() overwrites the data from the first call. Otherwise, the data from the first AInScan() will be followed by the data from the second AInScan() in the memory on the card.

Likewise, anytime you call MemRead() or MemWrite(), it will leave the counter pointing to the next memory location after the data that you read or wrote. Call MemReset() to reset back to the start of the memory buffer before the next call to AInScan().