MemoryUsageDevice#

A Bonsai source that wraps a Memory Usage Monitor device.

Inputs:

None

Outputs:

A single MemoryUsageDataFrame that is produced periodically by hardware containing information about data buffer memory status. This type is a wrapper around the Device To Host Data Frame specified on the Memory Usage Monitor datasheet. To calculate the percentage of memory that is occupied, divide the number of 32-bit memory words used by the hardware’s total memory and multiply that quotient by 100.

Attention

The Block Read Size property in the ONIContext node is set intentionally low so that the buffer accumulates data for demonstration purposes.

MemoryMonitor.bonsai
MemoryMonitor

Configuration#

Configuration is performed using its property pane which contains the following options.

Name

Type

Description

EnableStream

boolean

Enable the device data stream

UpdateHz

uint

Rate at which the hardware memory usage is polled in Hz.

MemorySize

uint

Hardware buffer size in 32-bit words.