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 | |
---|
1 | function disablebpm |
---|
2 | % disablebpm - disable in Tango group BPM with status 0 |
---|
3 | % |
---|
4 | |
---|
5 | |
---|
6 | % Laurent S. Nadolski |
---|
7 | |
---|
8 | %% |
---|
9 | familyName = 'BPMx'; |
---|
10 | |
---|
11 | GroupId = getfamilydata(familyName, 'GroupId'); |
---|
12 | % Full list |
---|
13 | DeviceListFull = family2dev(familyName,0); |
---|
14 | % List with Status 1 |
---|
15 | DeviceList = 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) |
---|
19 | tango_group_disable_device2(GroupId, dev2tangodev(familyName, DeviceListFull)); |
---|
20 | tango_group_enable_device2(GroupId, dev2tangodev(familyName, DeviceList)); |
---|
21 | |
---|
22 | size(gethbpmgroup) |
---|
Note: See
TracBrowser
for help on using the repository browser.