Data Acquisition Toolbox    

How Much Memory Do You Need?

The memory (in bytes) required for data storage depends on these factors:

The memory required for data storage is given by the formula

Of course, the number of samples you need to store in the engine at any time depends on your particular needs. The memory used by a device object is given by the formula

The block size and block number are given by the BufferingConfig property. The data type is given by the NativeDataType field of the daqhwinfo function.

You can display the memory resources used by (and available to) a device object with the daqmem function. For analog input objects, memory is used when channels are added. For analog output objects, memory is used when data is queued in the engine. For both device objects, the memory used can dynamically change based on the number of samples acquired or queued.


  Memory Allocation Example: Managing Memory Resources