trigger()
trigger()
Description
Begins pulse train delivery on the specified output channels.
Syntax
trigger(Channels)
Parameters
Channels: a list of the channels to trigger. Channels may be specified in three formats:
- a channel or array of channels to trigger, where each channel is specified by its index: 1, 2, 3 or 4
- a binary string specifying which channels to trigger (e.g TriggerPulsePal ('1011') --> trigger channels 1, 2 and 4).
- a list of single channels given as separate arguments
Returns
None
Examples
% 1. This triggers output channels 2 and 4 to play their currently programmed pulse train
P.trigger([2 4])
% 2. This triggers channels 1, 3 and 4
P.trigger('1101')
% 3. This triggers channels 1 and 3
P.trigger(1, 3)