-
Notifications
You must be signed in to change notification settings - Fork 0
/
canali.m
41 lines (39 loc) · 958 Bytes
/
canali.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
function canali
global D R O C scarica;
D=[];
R=[];
O=[];
C=[];
scarica=str2num(get(gcbo,'string'));
if scarica<34180
set(findobj(gcbf,'style','edit','tag','freq'),'string',70);
else
set(findobj(gcbf,'style','edit','tag','freq'),'string',78);
end
nome_file=sprintf('turbo_%d.mat',scarica);
if exist(nome_file)
disp('Loading data file...');
load(nome_file);
disp('Loaded diagnostics and channels :');
a=cell(1,length(D));
for i=1:length(D)
O(i).analisi_diag=0;
%By default no filtering operation on amplitude and phase
O(i).ampwvl=0;
O(i).ampfil=0;
O(i).amp=0;
if or(D(i).nome=='riflx',D(i).nome=='riflo')
O(i).phwvl=0;
O(i).phfil=0;
O(i).phase=0;
end
disp(D(i).nome);
disp(D(i).scan(1:D(i).ncan));
%disp(D(i).srms);
a(i)=cellstr(D(i).nome);
end
%h=findobj(gcbf,'style','listbox','tag','quali');
%set(h,'string',a);
else
D.nome={};
end