1 | function [DServName, StandByStr] = idGetUndDServer(idName) |
---|
2 | |
---|
3 | DServName = ''; |
---|
4 | StandByStr = ''; %String to search in the return of "Status" command of DServer |
---|
5 | |
---|
6 | if strcmp(idName, 'HU80_TEMPO') |
---|
7 | DServName = 'ANS-C08/EI/M-HU80.2'; %Name of Level 2 DServer |
---|
8 | StandByStr = 'ANS-C08/EI/M-HU80.2_MotorsControl : STANDBY'; |
---|
9 | elseif strcmp(idName, 'HU80_PLEIADES') |
---|
10 | %DServName = 'ANS-C04/EI/M-HU80.2'; %Name of Level 2 DServer |
---|
11 | %StandByStr = 'ANS-C04/EI/M-HU80.2_MotorsControl : STANDBY'; |
---|
12 | DServName = 'ANS-C04/EI/M-HU80.1'; %Name of Level 2 DServer |
---|
13 | StandByStr = 'ANS-C04/EI/M-HU80.1_MotorsControl : STANDBY'; |
---|
14 | elseif strcmp(idName, 'HU80_CASSIOPEE') |
---|
15 | DServName = 'ANS-C15/EI/M-HU80.1'; %Name of Level 2 DServer |
---|
16 | StandByStr = 'ANS-C15/EI/M-HU80.1_MotorsControl : STANDBY'; |
---|
17 | elseif strcmp(idName, 'U20_PROXIMA1') |
---|
18 | DServName = 'ANS-C10/EI/C-U20'; %Name of Level 2 DServer |
---|
19 | StandByStr = 'ANS-C10/EI/C-U20_MOTORSCONTROL: STANDBY'; |
---|
20 | elseif strcmp(idName, 'U20_SWING') |
---|
21 | DServName = 'ANS-C11/EI/C-U20'; %Name of Level 2 DServer |
---|
22 | StandByStr = 'ANS-C11/EI/C-U20_MOTORSCONTROL: STANDBY'; |
---|
23 | elseif strcmp(idName, 'U20_CRISTAL') |
---|
24 | DServName = 'ANS-C06/EI/C-U20'; %Name of Level 2 DServer |
---|
25 | StandByStr = 'ANS-C06/EI/C-U20_MOTORSCONTROL: STANDBY'; |
---|
26 | elseif strcmp(idName, 'HU640_DESIRS') |
---|
27 | DServName = 'ANS-C05/EI/L-HU640'; %Name of Level 2 DServer |
---|
28 | %StandByStr = '- ANS-C05/EI/L-HU640_PS1: ON\n- ANS-C05/EI/L-HU640_PS2: ON\n- ANS-C05/EI/L-HU640_PS3: ON'; |
---|
29 | StandByStr = '- ANS-C05/EI/L-HU640_PS1: ON'; %to correct later!!! |
---|
30 | end |
---|
31 | |
---|