File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,32 @@ function checkAbort(cfg, deviceNumber)
66 % the default device. When an abort key is detected this will set a global variable and throw a
77 % specific error that can then be catched.
88 %
9- % USAGE:
9+ % USAGE::
1010 %
11- % function checkAbort(cfg, deviceNumber)
11+ % checkAbort(cfg, deviceNumber)
1212 %
13- % Maint script
14- % try
15- % % Your awesome experiment
16- % catch ME % when something goes wrong
17- % switch ME.identifier
13+ % Examples::
14+ %
15+ % try
16+ %
17+ % % Your awesome experiment
18+ %
19+ % catch ME % when something goes wrong
20+ %
21+ % switch ME.identifier
22+ %
1823 % case 'checkAbort:abortRequested'
19- % % stuff to do when an abort is requested (save data...)
24+ %
25+ % % stuff to do when an abort is requested (save data...)
26+ %
2027 % otherwise
21- % % stuff to do otherwise
22- % rethrow(ME) % display the error
23- % end
24- % end
28+ %
29+ % % stuff to do otherwise
30+ % rethrow(ME) % display the error
31+ %
32+ % end
33+ % end
34+ %
2535
2636 if nargin < 1 || isempty(cfg )
2737 error(' I need at least one input.' );
You can’t perform that action at this time.
0 commit comments