source: MML/trunk/machine/SOLEIL/StorageRing/diagnostics/fofb_read_LP_Delay.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 626 bytes
Line 
1function [Comm_delay,Link_partners]=fofb_read_LP_Delay(groupe)
2
3
4
5CC_status=768*4;
6LP1=CC_status+2*4
7
8read_array=int32([CC_status,4,256]);
9
10result=(tango_group_command_inout2(groupe,'ReadFAData',1,read_array));
11for i=1:1:120
12    BPM_index(i)=i;
13    Delay(i)=result.replies(mod(i,120)+1).data(29);
14    involved(i)=result.replies(mod(i,120)+1).data(30);
15    for j=1:1:3       
16        LP_array(i,j)=result.replies(mod(i,120)+1).data(j+2);
17    end
18end
19
20Full_array=[BPM_index' Delay' involved' LP_array];
21sorted_array=sortrows(Full_array,2);
22
23disp('BPMindex  seen    Com_dly        LP1        LP2        LP3')
24disp(sorted_array)
Note: See TracBrowser for help on using the repository browser.