%% Set Block Parameters and Capture Data
% Capture a block of data and retrieve data values for Channels A.
% Block data acquisition properties and functions are located in the
% Instrument Driver's Block group.
blockObj = get(ps3000aDeviceObj, 'Block');
blockObj = blockObj(1);
% Set pre-trigger and post-trigger samples as required
% The default of 0 pre-trigger and 1 million post-trigger samples is used
% in this example.
preTriggerSamples = 0;
postTriggerSamples = data.BUFFER_SIZE - preTriggerSamples;
set(ps3000aDeviceObj, 'numPreTriggerSamples', preTriggerSamples);
set(ps3000aDeviceObj, 'numPostTriggerSamples', postTriggerSamples);
Users browsing this forum: No registered users and 0 guests