function channels_out = get_channels_out(ch_id)
- if ch_ind == 1
+ if ch_id == 1
channels_out = [1];
- elseif ch_ind == 2
+ elseif ch_id == 2
channels_out = [1 2];
- elseif ch_ind == 3
+ elseif ch_id == 3
channels_out = [1 2 3];
- elseif ch_ind == 4
+ elseif ch_id == 4
channels_out = [1 2 3 4];
- elseif ch_ind == 5
+ elseif ch_id == 5
channels_out = [1 2 3 4 5 6 7 8];
end
f_min = str2double(get(handles.f_gen_min,'String'));
f_max = str2double(get(handles.f_gen_max,'String'));
time = get(handles.time_gen,'Value');
- channels_in = get_channels_in(handles);
+ ch_in_id = get(handles.channels_in,'Value');
+ channels_in = get_channels_in(ch_in_id);
+ ch_out_id = get(handles.channels_out,'Value');
+ channels_out = get_channels_out(ch_out_id);
gain_in = get(handles.gain_in,'Value');
- channels_out = get_channels_out(handles);
gain_out = get(handles.gain_out,'Value');
% Save it