Memory / Buffer Management
Bases: PicoScopeBase
, shared_ps6000a_psospa
, shared_4000a_6000a
PicoScope 6000 (A) API specific functions
Methods:
Name | Description |
---|---|
get_maximum_available_memory |
Return the maximum sample depth for the current resolution. |
memory_segments |
Configure the number of memory segments. |
memory_segments_by_samples |
Set the samples per memory segment. |
set_data_buffer |
Allocates and assigns a data buffer for a specified channel on the 6000A series. |
set_data_buffer_for_enabled_channels |
Sets data buffers for enabled channels set by picosdk.set_channel() |
set_data_buffer_rapid_capture |
Allocates and assigns multiple data buffers for rapid block capture on a specified channel. |
set_data_buffers |
Allocate and assign max and min NumPy-backed data buffers. |
set_data_buffers_rapid_capture |
Allocate and assign max and min NumPy-backed data buffers for rapid block |
get_maximum_available_memory()
Return the maximum sample depth for the current resolution.
Wraps ps6000aGetMaximumAvailableMemory
to query how many samples
can be captured at self.resolution
.
Returns:
int: Maximum number of samples supported.
Raises:
PicoSDKException: If the device has not been opened.
memory_segments(n_segments)
Configure the number of memory segments.
This wraps the ps6000aMemorySegments
API call.
Parameters: |
|
---|
Returns: |
|
---|
memory_segments_by_samples(n_samples)
Set the samples per memory segment.
This wraps ps6000aMemorySegmentsBySamples
which divides the
capture memory so that each segment holds n_samples
samples.
Parameters: |
|
---|
Returns: |
|
---|
set_data_buffer(channel, samples, segment=0, datatype=DATA_TYPE.INT16_T, ratio_mode=RATIO_MODE.RAW, action=ACTION.CLEAR_ALL | ACTION.ADD, buffer=None)
Allocates and assigns a data buffer for a specified channel on the 6000A series.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
set_data_buffer_for_enabled_channels(samples, segment=0, datatype=DATA_TYPE.INT16_T, ratio_mode=RATIO_MODE.RAW, clear_buffer=True, captures=0)
Sets data buffers for enabled channels set by picosdk.set_channel()
Parameters: |
|
---|
Returns: |
|
---|
set_data_buffer_rapid_capture(channel, samples, captures, segment=0, datatype=DATA_TYPE.INT16_T, ratio_mode=RATIO_MODE.RAW, action=ACTION.CLEAR_ALL | ACTION.ADD)
Allocates and assigns multiple data buffers for rapid block capture on a specified channel.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
set_data_buffers(channel, samples, segment=0, datatype=DATA_TYPE.INT16_T, ratio_mode=RATIO_MODE.AGGREGATE, action=ACTION.CLEAR_ALL | ACTION.ADD, buffers=None)
Allocate and assign max and min NumPy-backed data buffers.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|
set_data_buffers_rapid_capture(channel, samples, captures, segment=0, datatype=DATA_TYPE.INT16_T, ratio_mode=RATIO_MODE.RAW, action=ACTION.CLEAR_ALL | ACTION.ADD)
Allocate and assign max and min NumPy-backed data buffers for rapid block capture on a specified channel.
Parameters: |
|
---|
Returns: |
|
---|
Raises: |
|
---|