-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparam_vl2.m
66 lines (53 loc) · 1.87 KB
/
param_vl2.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
% PARAM_VL2
%
% Sluzi na zadanie parametrov pre metody syntezy regulatora
%
% Dava na vyber:
%
% SYNTEZA REGULATORA - TEST_V
% ic je vektor na kontrolu zadania vstupov
ic=zeros(1,4);
% Premenna J1, ktora urcuje, ci uz bola spustena synteza regulatora alebo
% test kvality. Ak ano, J1 == 1, inak J1 == 0
J1 = 1;
close(findobj('Tag','ptt_param'))
if(exist('typ_i2'))
typ_i = typ_i2;
elseif (isnumeric(ksi_km)&&isnumeric(K)&&isnumeric(T_km)&&isnumeric(D_km))
typ_i = 2;
else
typ_i = 1;
end
figure('Color','blue',...
'Resize','off',...
'Numbertitle','off',...
'Tag','ptt_param',...
'Menubar',ptv_fig_menubar,...
'name',ptg_string(1,5,ptv_str_lang),...
'position',[150 100 260 270]);
% Clolourful effect
ptf_cfbcg(gcf,ptv_cfbcg)
%--------------- Vyber typu prenosu ----------------------
typid = uicontrol(gcf,...
'Style','popup',...
'Position',[20 220 220 35],...
'String',ptg_string(4,1,ptv_str_lang),...
'Value',typ_i,...
'Tag','ptt_typ_i',...
'ForegroundColor','black',...
'BackGroundColor','white',...
'CallBack','typ_i = get(gco,''Value'');if(typ_i)==1,param_vl3,elseif(typ_i)==2,param_vl4,end;');
%-----TLACITKO-----%
pth_but = uicontrol(gcf,...
'Style','push',...
'Position',[90 20 155 25],...
'Fontsize',[11],...
'Fontweight','bold',...
'String',ptg_string(3,3,ptv_str_lang),...
'ForegroundColor','black',...
'CallBack','typ_i = get(findobj(''Tag'',''ptt_typ_i''),''Value'');close(gcf),close(findobj(''Tag'',''ptt_id_param'')),close(findobj(''Tag'',''ptt_id_tune'')),close(findobj(''Tag'',''ptt_plot'')),J1 = 0; if(typ_i==1),test_v,else,test_v2,end');
if(typ_i)==1 % Strejcov tvar
param_vl3
elseif(typ_i)==2 % Kmitavy tvar
param_vl4
end