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:
498 bytes
|
Rev | Line | |
---|
[4] | 1 | |
---|
| 2 | for k =1:1000, |
---|
| 3 | LifeTime = measlifetime(60,'Display'); |
---|
| 4 | if getdcct < 0.1 |
---|
| 5 | disp('Inject first'); |
---|
| 6 | tango_write_attribute2('ANS/DG/PUB-LifeTime','string_scalar',[num2str(0,4) ' h']); |
---|
| 7 | else |
---|
| 8 | tango_write_attribute2('ANS/DG/PUB-LifeTime','string_scalar',[num2str(LifeTime,4) ' h']); |
---|
| 9 | tango_write_attribute2('ANS/DG/PUB-LifeTime','double_scalar',LifeTime); |
---|
| 10 | end |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | end |
---|
| 14 | tango_write_attribute2('ANS/DG/PUB-LifeTime','string_scalar',[num2str(-1,4) ' h']); |
---|
| 15 | |
---|
| 16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.