sendCustomPulseTrain()

Description


Syntax

confirmed = sendCustomPulseTrain(trainID, pulseTimes, voltages)

Parameters

Returns

Examples

% 1. This programs and triggers a train of three 250μs pulses on output channel 2 

% The pulses occur at at times 0ms, 1ms and 10ms. 

% Their voltages are -8V, 2V and 10V. 

Voltages = [-8 2 10];

PulseTimes = [0 .001 .01];

P.sendCustomPulseTrain(1, PulseTimes, Voltages); % Program custom pulse train 1

P.customTrainID(2) = 1; % Set output channel 2 to use custom pulse train 1

P.phase1Duration(2) = 0.00025; % Set output channel 2 to use 250μs pulses

P.trigger(2); % Trigger output channel 2