sendCustomPulseTrain()

Description

Sends a sequence of onset times and voltages describing a train of pulses. 

Syntax

sendCustomPulseTrain(customTrainID, pulseTimes, pulseVoltages)

Parameters

Returns

None

Example

pulseTimes = [0, 0.2, 0.5, 1] # Create an array of pulse times in seconds

voltages = [8,4,-3.5,-10] # Create an array of pulse voltages in volts

myPulsePal.programOutputChannelParam('customTrainID', 1, 2) # Set output ch1 to use custom train 2 

myPulsePal.sendCustomPulseTrain(2, pulseTimes, voltages) # Send arrays to PulsePal, defined as custom train 2

myPulsePal.triggerOutputChannels(1, 0, 0, 0) # Soft-trigger output channel 1 to play its pulse train