source: MML/trunk/machine/SOLEIL/StorageRing/bpm/disablebpm.m @ 17

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

To have a stable version on the server.

  • Property svn:executable set to *
File size: 660 bytes
Line 
1function disablebpm
2% disablebpm - disable in Tango group BPM with status 0
3%
4
5
6% Laurent S. Nadolski
7
8%%
9familyName = 'BPMx';
10
11GroupId = getfamilydata(familyName, 'GroupId');
12% Full list
13DeviceListFull = family2dev(familyName,0);
14% List with Status 1
15DeviceList = family2dev(familyName);
16% % Find device list with Status 0
17% [iFound, iNotFound] = findrowindex(DeviceListFull, DeviceList);
18%tango_group_disable_device2(GroupID, family2tangodev('BPMx', DeviceListFull(iNotFound,:))',0)
19tango_group_disable_device2(GroupId, dev2tangodev(familyName, DeviceListFull));
20tango_group_enable_device2(GroupId, dev2tangodev(familyName, DeviceList));
21
22size(gethbpmgroup)
Note: See TracBrowser for help on using the repository browser.