TriggerBuilder

Description

Builds arrays of triggers to output from DAQ cards to control and synchronise experiments

Imgur

Input

  • None : opens an interactive GUI
  • Name-value pairs : runs core script using passed parameters (no GUI)

Output

out_array : 1d array or { 1d arrays } if creating more than one channel with the GUI

Note: if 'save_result' is true, 'out_array' is saved to file with the following naming scheme: "NamePrefix_XTriggers_EveryXms_TrainXRepsEveryXms_XmsDuration... _XmsShift_XmsJitter_XHzSampleRate_XV.dat"

Example

% Load the interactive GUI
TriggerBuilder

% Call the core script using passed parameters (no GUI)
out_array = TriggerBuilder('name_prefix',        'name',...
                           'total_num_triggers', 10,...
                           'trigger_every_ms',   1000,...
                           'trigger_dur_ms',     20,...
                           'train_num_reps',     1,...
                           'train_rep_every_ms', 0,...
                           'shift_by_ms',        0,...
                           'tail_to_add_ms',     0,...
                           'jitter_ms',          0,...
                           'trigger_amp_v',      5,...
                           'sample_rate_hz',     1000,...
                           'to_blank',           0,...
                           'to_blank_train',     0,...
                           'plot_result',        true,...
                           'save_result',        true...
                          );