source: MML/trunk/machine/SOLEIL/StorageRing/bpm/tango_getbpmtimeout.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: 447 bytes
Line 
1function timeout = tango_getbpmtimeout
2% tango_setbpmtimeout - set timeout (10s) for bpm
3%
4%
5%
6
7%
8%  Written by Laurent S. Nadolski
9
10
11devList = family2tangodev('BPMx');
12timeout = zeros(1,size(devList,1));
13for k=1:length(devList),
14    timeout(k) = tango_get_timeout(devList{k});
15    if tango_error == 1
16        tango_print_error_stack;
17    end
18end
19
20if mean(timeout) ~= timeout(1)
21    fprintf('A least one BPM is not configured as others\n');
22end
Note: See TracBrowser for help on using the repository browser.