Skip to content

Commit

Permalink
Minor tweaks in image acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrediquette committed Jul 13, 2022
1 parent 6570267 commit 5c6afd2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion PIVlab_GUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -11977,6 +11977,13 @@ function ac_device_control_Callback (~,~,~)
function select_capture_config_Callback (~,~,~)
handles=gethand;
value=get(handles.ac_config,'value');

old_setting=retr('old_setting');
if isempty(old_setting)
put ('old_setting',inf)
end
put ('old_setting',value)

put('do_realtime',0);
set(handles.ac_realtime,'Value',0)
if value==1 || value==3 % ILA.piv nano / pco pixelfly with evergreen or LD-PS
Expand All @@ -11988,7 +11995,9 @@ function select_capture_config_Callback (~,~,~)
avail_freqs={'5' '3' '1.5' '1'};
set(handles.ac_fps,'string',avail_freqs);
%if get(handles.ac_fps,'value') > numel(avail_freqs)
if old_setting ~= value
set(handles.ac_fps,'value',numel(avail_freqs))
end
%end
end
if value == 2 || value == 4% pco panda with evergreen or LD-PS
Expand All @@ -12002,7 +12011,9 @@ function select_capture_config_Callback (~,~,~)
avail_freqs={'50' '30' '15' '7.5' '5' '3' '1.5' '1'};
set(handles.ac_fps,'string',avail_freqs);
%if get(handles.ac_fps,'value') > numel(avail_freqs)
if old_setting ~= value
set(handles.ac_fps,'value',numel(avail_freqs))
end
%end
end
if value == 5 % chronos LD-PS
Expand All @@ -12013,10 +12024,12 @@ function select_capture_config_Callback (~,~,~)
%put('master_freq',3);
put('f1exp_cam',350); %exposure time setting first frame
put('master_freq',15);
avail_freqs={'850' '600' '500' '400' '300' '200' '100' '50' '25' '10' '5'};
avail_freqs={'1000' '850' '600' '500' '400' '300' '200' '100' '50' '25' '10' '5'};
set(handles.ac_fps,'string',avail_freqs);
%if get(handles.ac_fps,'value') > numel(avail_freqs)
if old_setting ~= value
set(handles.ac_fps,'value',numel(avail_freqs))
end
%end
end
ac_expo_Callback
Expand Down

0 comments on commit 5c6afd2

Please sign in to comment.