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:
758 bytes
|
Line | |
---|
1 | function fofb_write_matrix(bpm,matrixLineX,matrixLineZ) |
---|
2 | coeffx=256*4+4; |
---|
3 | coeffz=512*4+4; |
---|
4 | fai_cfg_reg=2048*4; |
---|
5 | ack_rise=int32([fai_cfg_reg 4 1 9]); |
---|
6 | ack_fall=int32([fai_cfg_reg 4 1 8]); |
---|
7 | N=120; |
---|
8 | |
---|
9 | |
---|
10 | conf_array_X=int32([coeffx 4 N matrixLineX]); |
---|
11 | conf_array_Z=int32([coeffz 4 N matrixLineZ]); |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | % tango_group_command_inout2(groupe,'WriteFAData',1,conf_array_X) |
---|
16 | % tango_group_command_inout2(groupe,'WriteFAData',1,conf_array_Z) |
---|
17 | % tango_group_command_inout2(groupe,'WriteFAData',1,ack_rise) |
---|
18 | % tango_group_command_inout2(groupe,'WriteFAData',1,ack_fall) |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | tango_command_inout2(bpm,'WriteFAData',conf_array_X); |
---|
23 | tango_command_inout2(bpm,'WriteFAData',conf_array_Z); |
---|
24 | |
---|
25 | tango_command_inout2(bpm,'WriteFAData',ack_rise); |
---|
26 | tango_command_inout2(bpm,'WriteFAData',ack_fall); |
---|
Note: See
TracBrowser
for help on using the repository browser.