Home > machine > Soleil > common > synchro > get_synchro_value.m

get_synchro_value

PURPOSE ^

complet timing structure with value

SYNOPSIS ^

function [timing]=get_synchro_value

DESCRIPTION ^

 complet timing structure with value
 timing.name
 timing.list    (table de 4 attributs par n delais)
 timing.value   according to list

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [timing]=get_synchro_value
0002 % complet timing structure with value
0003 % timing.name
0004 % timing.list    (table de 4 attributs par n delais)
0005 % timing.value   according to list
0006 
0007 % get list
0008 [timing]=get_synchro_attribut;
0009 nc=length(timing);
0010 
0011 
0012 
0013 m=1; % valeur lue
0014 for k=2:nc
0015     
0016     name=timing(k).name;
0017     list=timing(k).list;
0018     n=size(list);
0019     ndelais=n(1) ; % nombre de délais
0020     ndata =n(2);  % nombre d'attribut par délais
0021     fprintf('%s   %d  délais\n',name,ndelais)
0022     
0023     value=[];
0024     for i=1:ndelais
0025         val=[];
0026         for j=1:ndata-1
0027             temp=tango_read_attribute2(name, list{i,j});
0028             val=[val double(temp.value(m))];
0029         end
0030         value=[value ; val];
0031     end
0032     
0033     
0034     % complete stucture
0035     timing(k).value=value;
0036     
0037 end
0038 
0039 return

Generated on Fri 23-Jul-2010 00:42:07 by m2html © 2005