Skip to content

Commit ca68f7d

Browse files
committed
Merge remote-tracking branch 'origin/dev-name-start'
2 parents fe1d234 + 9cc6fab commit ca68f7d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

AD9361_Filter_Wizard.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@ function AD9361_Filter_Wizard_OpeningFcn(hObject, eventdata, handles, varargin)
171171
handles.helpcallback = str2func(varargin{i + 1});
172172
elseif strcmpi(varargin{i}, 'CallbackObj')
173173
handles.callbackObj = varargin{i + 1};
174+
elseif strcmpi(varargin{i}, 'SetDevice')
175+
% Set default device
176+
switch lower(varargin{i + 1})
177+
case 'ad9361'
178+
handles.device.Children(15).Value = 1;
179+
case 'ad9364'
180+
handles.device.Children(15).Value = 2;
181+
case 'pluto'
182+
handles.device.Children(15).Value = 3;
183+
otherwise
184+
error('Unknown default device');
185+
end
174186
else
175187
error('Unknown input to function');
176188
end

0 commit comments

Comments
 (0)