function [recording_status,output_channel_to_presynaptic,number_of_trials,ITI,hy,stim_philosophy,trial_time_add_on,OVSF_presyn_possible,... pulse_duration_presyn_possible,evoke_postsynaptic_AP,postsyn_AP_delay_possible,OVSF_postsyn_possible,pulse_duration_postsyn_possible,... cs,stim_phil5,blankenstimulus,alternating_presynaptic_channel,alternating_spritzing,ramp_height,ramp_duration,perform_triggered_imaging,... image_every_nth_trial,trigger_high_duration,ydepth_of_rawplot,yheight_of_rawplot,mcc_output_gain_scaling_factor,autapse_analysis_mode,... sampling_rate]=run_expt_dwn_parametersfile %called by run_expt_dwn recording_status=1; %for 1 the input object will log data to disk&memory, for 0 to memory only output_channel_to_presynaptic=2; %tells which electrode is being treated as on the presynaptic side in matlab channel numbering (output channel 1 is hardware channel 0 etc.) %this info will be used by random_train.m and update_patchlog.m to fliplr the output stim and to fliplr the recorded data when set to 2 %since update_patchlog.m will fliplr(1 2), all subsequent processing that works from the log file need not be changed number_of_trials=40; ITI=30; %intertrial interval, in seconds %the presynaptic stimulus information matrix, used when stim_philosophy==1 (if hy is empty the output generated by random_train will be a single pulse) %first row number of possible values for that IPI (#IPIs = #values in the first row, so #APs is that +1),%second row is minimum for that IPI in ms, %third row is interval size for that in ms hy=[1;50;1];%[repmat(1,1,2);repmat(100,1,2);repmat(1,1,2)]%[25 50 100 200 400]%[repmat(1,1,1000);repmat(100,1,1000);repmat(1,1,1000)]%%[25 50 100 200 400]%[repmat(1,1,200);repmat(10,1,200);repmat(1,1,200)]%[25 50 100 200 400]%[repmat(1,1,200);repmat(10,1,200);repmat(1,1,200)]%[25 50 100 200 400]%[repmat(1,1,200);repmat(10,1,200);repmat(1,1,200)]%[12.5 25 50 100 200 400 800];%[1 1 1 1 5; 10 10 10 10 100; 1 1 1 1 100]%[1 1 1 1 1; 10 10 10 10 300; 1 1 1 1 1];%[3 3 3; 300 300 300; 300 300 300]%[12.5 25 50 100 200 400 800]%[repmat(1,1,200);repmat(250,1,200);repmat(1,1,200)]%[1 1 1 1 1 1; 50 50 50 50 50 500; 1 1 1 1 1 1]%% stim_philosophy=1 %0 behaves like 1 unless hy is empty, in which case each cell gets a single pulse;1 randomly builds a train with various intervals; 2 loads a presaved train; 3 ; 4 ; 5 is used for loading with FM, based on the 'stimphil5' variable; 6 is a four pulse train with the middle IPI varying; 7; 8; 9; 10 trial_time_add_on=3000; %in milliseconds -- used in calculating additional_trial_time below OVSF_presyn_possible=[1 5 1]; %stim intensity from the board in volts -- output voltage scaling factor pulse_duration_presyn_possible=[1 2 1]; %in ms evoke_postsynaptic_AP=[0 1]; %1 or 0, yea or nay, and if so, every how many trials postsyn_AP_delay_possible=[1 0 10]; %in ms OVSF_postsyn_possible=[1 5 1]; %combinatorially occur equal numbers of times pulse_duration_postsyn_possible=[1 5 1]; %these two variables will be used by cs or by the joint pre-post matrix (added oct 19, 2003) cs=[]; %the matrix for postsynaptic IPIs (structured analgously to hy) (alternatively could do an 'overall' matrix, s.t. pre-and post spike time combinations) stim_phil5=[25,1000,30,290]; %used if stim_philosophy==5 (number of pulses, mean IPI in samples, pulse duration in samples, minimum interpulse interval in samples) blankenstimulus=[0 10 0 0 inv(output_channel_to_presynaptic/2)]; %yes/no, trial_duration_in_seconds, pulse_start_time_in_seconds, pulse_duration_in_seconds, pulsed_channel alternating_presynaptic_channel=0; alternating_spritzing=0; ramp_height=5; ramp_duration=1000; %for stim_philosophy 10 -- ramp_height in 20mV, ramp_duration in samples perform_triggered_imaging=1; image_every_nth_trial=10; %image will be taken before the 1st trial regardless of this setting trigger_high_duration=.6; %in seconds ydepth_of_rawplot=-1000; yheight_of_rawplot=200; mcc_output_gain_scaling_factor=1000; %(pA/V) this depends on two settings in MCC, the feedback resistor (under gains) for voltage clamp, and the output gain; this factor gives the number of pA of membrane current for each V recorded on the BNC board autapse_analysis_mode=0; %used by dwnrawreader_core (if true, the postsyn trace is set equal to the presyn [with a correction for stim pulses]) sampling_rate=10000; %in kHz