source: MML/trunk/machine/SOLEIL/common/synchro/get_synchro_attribut.m

Last change on this file was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 760 bytes
Line 
1function [timing]=get_synchro_attribut
2% make a timing structure
3% timing.name
4% timing.list (table de 4 attributs par n delais)
5
6n1=21 ; % skip n1 first  attribut not relevant
7n2=2  ; % skip last n2 attribut not relevant
8
9% get liste des cartestiming(i).name=name;
10[list_carte_synchro]=get_list_carte_synchro;
11nc=length(list_carte_synchro);
12
13timing=[];
14for k=2:nc
15   
16    name=list_carte_synchro{k};
17    list_at=tango_get_attribute_list(name);
18    n=length(list_at)-n2;list_at=list_at(n1:n);
19    %fprintf('%s\n',name)
20    list=[];
21    for i=1:4:length(list_at)
22        %fprintf('   %s  %s   %s  %s\n',list_at{i:i+3})
23        list=[list ; [list_at(i:i+3)]];
24    end
25   
26    % make stucture
27    timing(k).name=name;
28    timing(k).list=list;
29   
30end
31
32return
Note: See TracBrowser for help on using the repository browser.