Skip to content

Commit

Permalink
Minor tweak in chronos image capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrediquette committed Jul 13, 2022
1 parent 5c6afd2 commit 001cd76
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@
response = webwrite([cameraURL '/control/getResolutionTimingLimits'],struct('hRes',1280,'vRes',1024),options);
max_exp=response.exposureMax;
max_fr=1/(response.minFramePeriod/1000/1000/1000);
response2 = webwrite([cameraURL '/control/p'],struct('exposureMode','shutterGating','exposurePeriod', floor(max_exp),'frameRate',max_fr),options);
response = webwrite([cameraURL '/control/set'],struct('ioMapping',struct('shutter',struct('shutterTriggersFrame',0,'source','io1','debounce',0,'invert',0))),options);
response = webwrite([cameraURL '/control/p'],struct('exposureMode','shutterGating','exposurePeriod', floor(max_exp),'frameRate',max_fr),options);
% swapped the two above.
pause(cmd_delays)

if strcmp(response.exposureMode,'shutterGating')
if strcmp(response2.exposureMode,'shutterGating')
set(frame_nr_display,'String',['setting external trigger OK!']);drawnow;
else
set(frame_nr_display,'String',['Error: External trigger could not be set!']);drawnow;
Expand Down

0 comments on commit 001cd76

Please sign in to comment.