Basic API Usage in MATLAB
Intro running experiments in a local MATLAB session
% Reports "true" and is ready to present stimuli
>> hZP.isReadyToStim
ans =
logical
1
% The stimulus config is located here
>> hZP.stimConfig
ans =
stimConfig with properties:
configFileName: 'C:\stim_configs\uniAndBilateral_5_conditions.yml'
laserPowerInMW: 5
stimModulationFreqHz: 40
stimLocations: [1×5 struct]
offRampDownDuration_ms: 250
chanSamples: [2500×4×5 double]
maxStimPulseDuration: 12.2000
blankingTime_ms: 0.3000
% The stimulus config can be queried to return the number of conditions
>> hZP.stimConfig.numConditions
ans =
5Presenting a stimulus
Presenting a randomly chosen stimulus
Presenting a control trial with the laser off
Logging stimuli
Precise control of stimulus timing
Last updated