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
|
Rev | Line | |
---|
[4] | 1 | function set_synchro_KHV(step) |
---|
| 2 | |
---|
| 3 | % read |
---|
| 4 | temp=tango_read_attribute2('ANS-C01/SY/LOCAL.DG.2', 'bpm.trigStepDelay');bpm=temp.value(1); %not used |
---|
| 5 | temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');kv0=temp.value(1); |
---|
| 6 | temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');kh0=temp.value(1); |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | % setp les clk |
---|
| 10 | tango_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 |
---|
| 15 | temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-v.trigStepDelay');kv1=temp.value(1); |
---|
| 16 | temp=tango_read_attribute2('ANS-C01/SY/LOCAL.EP.1', 'k-h.trigStepDelay');kh1=temp.value(1); |
---|
| 17 | |
---|
| 18 | fprintf('************ step %d ********** \n',step); |
---|
| 19 | fprintf('StepDelay avant KH= %d KV=%d \n',kh0,kv0); |
---|
| 20 | fprintf('StepDelay aprÚs KH= %d KV=%d \n',kh1,kv1); |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.