source: MML/trunk/machine/SOLEIL/common/synchro/set_synchro_KHV.m @ 4

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

Initial import--MML version from SOLEIL@2013

File size: 871 bytes
Line 
1function set_synchro_KHV(step)
2
3% read
4temp=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigStepDelay');bpm=temp.value(1); %not used
5temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');kv0=temp.value(1);
6temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');kh0=temp.value(1);
7
8
9% setp les clk
10tango_write_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay',(kv0+step) );
11%tango_write_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay',(kh0+step) );
12
13
14% read again
15temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');kv1=temp.value(1);
16temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');kh1=temp.value(1);
17
18fprintf('************ step %d ********** \n',step);
19fprintf('StepDelay avant  KH= %d   KV=%d \n',kh0,kv0);
20fprintf('StepDelay aprÚs  KH= %d   KV=%d \n',kh1,kv1);
21
Note: See TracBrowser for help on using the repository browser.