PageRenderTime 28ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/ATF2/control-software/Matlab/ps/ps_control.m

http://atf2flightsim.googlecode.com/
MATLAB | 1593 lines | 750 code | 189 blank | 654 comment | 101 complexity | faac911831148cee25a65357c72187cc MD5 | raw file
Possible License(s): BSD-2-Clause, LGPL-2.0, IPL-1.0, BSD-3-Clause

Large files files are truncated, but you can click here to view the full file

  1. function varargout = ps_control(varargin)
  2. % PS_CONTROL M-file for ps_control.fig
  3. % PS_CONTROL, by itself, creates a new PS_CONTROL or raises the existing
  4. % singleton*.
  5. %
  6. % H = PS_CONTROL returns the handle to a new PS_CONTROL or the handle to
  7. % the existing singleton*.
  8. %
  9. % PS_CONTROL('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in PS_CONTROL.M with the given input arguments.
  11. %
  12. % PS_CONTROL('Property','Value',...) creates a new PS_CONTROL or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before ps_control_OpeningFunction gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to ps_control_OpeningFcn via varargin.
  17. %
  18. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
  19. % instance to run (singleton)".
  20. %
  21. % See also: GUIDE, GUIDATA, GUIHANDLES
  22. % Edit the above text to modify the response to help ps_control
  23. % Last Modified by GUIDE v2.5 22-Oct-2007 14:51:01
  24. % Begin initialization code - DO NOT EDIT
  25. gui_Singleton = 1;
  26. gui_State = struct('gui_Name', mfilename, ...
  27. 'gui_Singleton', gui_Singleton, ...
  28. 'gui_OpeningFcn', @ps_control_OpeningFcn, ...
  29. 'gui_OutputFcn', @ps_control_OutputFcn, ...
  30. 'gui_LayoutFcn', [] , ...
  31. 'gui_Callback', []);
  32. if nargin && ischar(varargin{1})
  33. gui_State.gui_Callback = str2func(varargin{1});
  34. end
  35. if nargout
  36. [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
  37. else
  38. gui_mainfcn(gui_State, varargin{:});
  39. end
  40. % End initialization code - DO NOT EDIT
  41. % --- Executes just before ps_control is made visible.
  42. function ps_control_OpeningFcn(hObject, eventdata, handles, varargin)
  43. % This function has no output args, see OutputFcn.
  44. % hObject handle to figure
  45. % eventdata reserved - to be defined in a future version of MATLAB
  46. % handles structure with handles and user data (see GUIDATA)
  47. % varargin command line arguments to ps_control (see VARARGIN)
  48. global PS
  49. % Choose default command line output for ps_control
  50. % handles.output = hObject;
  51. % Set layout of PS push buttons
  52. handles.layout = {'1' '2' '3' '4' '5' '6' '7' '8' '38' '39' '40' '41' '42' '43' '44' '45' '70' '71' '78' '79' '80' '81' '82' '83' '84' '85' '110' '111' '112' '113' '114' '115' '116' '117' '142' '143' '150' '151';
  53. '12' '13' '14' '15' '16' '17' '18' '19' '46' '47' '48' '49' '50' '51' '52' '53' '72' '73' '86' '87' '88' '89' '90' '91' '92' '93' '118' '119' '120' '121' '122' '123' '124' '125' '144' '145' '152' '153'};
  54. handles.bulkLayout = {'22' '23' '24' '25' '26' '27' '28' '29' '54' '55' '56' '57' '58' '59' '60' '61' '74' '75' '94' '95' '96' '97' '98' '99' '100' '101' '126' '127' '128' '129' '130' '131' '132' '133' '146' '147' '154' '155';
  55. '30' '31' '32' '33' '34' '35' '36' '37' '62' '63' '64' '65' '66' '67' '68' '69' '76' '77' '102' '103' '104' '105' '106' '107' '108' '109' '134' '135' '136' '137' '138' '139' '140' '141' '148' '149' '156' '157'};
  56. % Only make available controls for requested PS's
  57. for iPS=1:length(handles.layout)
  58. if ismember(iPS,PS.inuse)
  59. set(handles.(['pushbutton',handles.layout{1,iPS}]),'Visible','on');
  60. set(handles.(['pushbutton',handles.layout{2,iPS}]),'Visible','on');
  61. set(handles.(['pushbutton',handles.bulkLayout{1,iPS}]),'Visible','on');
  62. set(handles.(['pushbutton',handles.bulkLayout{2,iPS}]),'Visible','on');
  63. fprintf('%d on\n',iPS)
  64. else
  65. set(handles.(['pushbutton',handles.layout{1,iPS}]),'Visible','off');
  66. set(handles.(['pushbutton',handles.layout{2,iPS}]),'Visible','off');
  67. set(handles.(['pushbutton',handles.bulkLayout{1,iPS}]),'Visible','off');
  68. set(handles.(['pushbutton',handles.bulkLayout{2,iPS}]),'Visible','off');
  69. fprintf('%d off\n',iPS)
  70. end % PS vis
  71. end % for iPS
  72. % Update handles structure
  73. guidata(hObject, handles);
  74. % UIWAIT makes ps_control wait for user response (see UIRESUME)
  75. % uiwait(handles.figure1);
  76. % --- Outputs from this function are returned to the command line.
  77. function varargout = ps_control_OutputFcn(hObject, eventdata, handles)
  78. % varargout cell array for returning output args (see VARARGOUT);
  79. % hObject handle to figure
  80. % eventdata reserved - to be defined in a future version of MATLAB
  81. % handles structure with handles and user data (see GUIDATA)
  82. % Get default command line output from handles structure
  83. varargout{1} = handles;
  84. % --- Executes on button press in pushbutton1.
  85. function pushbutton1_Callback(hObject, eventdata, handles)
  86. % hObject handle to pushbutton1 (see GCBO)
  87. % eventdata reserved - to be defined in a future version of MATLAB
  88. % handles structure with handles and user data (see GUIDATA)
  89. launch_psPanel(1);
  90. % Update handles structure
  91. guidata(hObject, handles);
  92. % --- Executes on button press in pushbutton2.
  93. function pushbutton2_Callback(hObject, eventdata, handles)
  94. % hObject handle to pushbutton2 (see GCBO)
  95. % eventdata reserved - to be defined in a future version of MATLAB
  96. % handles structure with handles and user data (see GUIDATA)
  97. launch_psPanel(2);
  98. % Update handles structure
  99. guidata(hObject, handles);
  100. % --- Executes on button press in pushbutton3.
  101. function pushbutton3_Callback(hObject, eventdata, handles)
  102. % hObject handle to pushbutton3 (see GCBO)
  103. % eventdata reserved - to be defined in a future version of MATLAB
  104. % handles structure with handles and user data (see GUIDATA)
  105. launch_psPanel(3);
  106. % Update handles structure
  107. guidata(hObject, handles);
  108. % --- Executes on button press in pushbutton4.
  109. function pushbutton4_Callback(hObject, eventdata, handles)
  110. % hObject handle to pushbutton4 (see GCBO)
  111. % eventdata reserved - to be defined in a future version of MATLAB
  112. % handles structure with handles and user data (see GUIDATA)
  113. launch_psPanel(4);
  114. % Update handles structure
  115. guidata(hObject, handles);
  116. % --- Executes on button press in pushbutton5.
  117. function pushbutton5_Callback(hObject, eventdata, handles)
  118. % hObject handle to pushbutton5 (see GCBO)
  119. % eventdata reserved - to be defined in a future version of MATLAB
  120. % handles structure with handles and user data (see GUIDATA)
  121. launch_psPanel(5);
  122. % Update handles structure
  123. guidata(hObject, handles);
  124. % --- Executes on button press in pushbutton6.
  125. function pushbutton6_Callback(hObject, eventdata, handles)
  126. % hObject handle to pushbutton6 (see GCBO)
  127. % eventdata reserved - to be defined in a future version of MATLAB
  128. % handles structure with handles and user data (see GUIDATA)
  129. launch_psPanel(6);
  130. % Update handles structure
  131. guidata(hObject, handles);
  132. % --- Executes on button press in pushbutton7.
  133. function pushbutton7_Callback(hObject, eventdata, handles)
  134. % hObject handle to pushbutton7 (see GCBO)
  135. % eventdata reserved - to be defined in a future version of MATLAB
  136. % handles structure with handles and user data (see GUIDATA)
  137. launch_psPanel(7);
  138. % Update handles structure
  139. guidata(hObject, handles);
  140. % --- Executes on button press in pushbutton8.
  141. function pushbutton8_Callback(hObject, eventdata, handles)
  142. % hObject handle to pushbutton8 (see GCBO)
  143. % eventdata reserved - to be defined in a future version of MATLAB
  144. % handles structure with handles and user data (see GUIDATA)
  145. launch_psPanel(8);
  146. % Update handles structure
  147. guidata(hObject, handles);
  148. % --- Executes on button press in pushbutton10.
  149. function pushbutton10_Callback(hObject, eventdata, handles)
  150. % hObject handle to pushbutton10 (see GCBO)
  151. % eventdata reserved - to be defined in a future version of MATLAB
  152. % handles structure with handles and user data (see GUIDATA)
  153. global PS
  154. for iPS=PS.inuse
  155. if strcmp(get(handles.(['pushbutton',handles.layout{2,iPS}]),'String'),'On')
  156. evalc(['pushbutton',handles.layout{2,iPS},'_Callback(handles.pushbutton',handles.layout{2,iPS},',eventdata,handles)']);
  157. end % if PS on
  158. end % for iPS
  159. % Update handles structure
  160. guidata(hObject, handles);
  161. % --- Executes on button press in pushbutton11.
  162. function pushbutton11_Callback(hObject, eventdata, handles)
  163. % hObject handle to pushbutton11 (see GCBO)
  164. % eventdata reserved - to be defined in a future version of MATLAB
  165. % handles structure with handles and user data (see GUIDATA)
  166. global PS
  167. for iPS=PS.inuse
  168. if strcmp(get(handles.(['pushbutton',handles.layout{2,iPS}]),'String'),'Off')
  169. evalc(['pushbutton',handles.layout{2,iPS},'_Callback(handles.pushbutton',handles.layout{2,iPS},',eventdata,handles)']);
  170. end % if PS on
  171. end % for iPS
  172. % Update handles structure
  173. guidata(hObject, handles);
  174. % --- Executes on button press in pushbutton12.
  175. function pushbutton12_Callback(hObject, eventdata, handles)
  176. % hObject handle to pushbutton12 (see GCBO)
  177. % eventdata reserved - to be defined in a future version of MATLAB
  178. % handles structure with handles and user data (see GUIDATA)
  179. if strcmp(get(hObject,'String'),'Off')
  180. powerToggle('On',1,hObject,handles);
  181. else
  182. powerToggle('Off',1,hObject,handles);
  183. end % is on or off?
  184. % Update handles structure
  185. guidata(hObject, handles);
  186. % --- Executes on button press in pushbutton13.
  187. function pushbutton13_Callback(hObject, eventdata, handles)
  188. % hObject handle to pushbutton13 (see GCBO)
  189. % eventdata reserved - to be defined in a future version of MATLAB
  190. % handles structure with handles and user data (see GUIDATA)
  191. if strcmp(get(hObject,'String'),'Off')
  192. powerToggle('On',2,hObject,handles);
  193. else
  194. powerToggle('Off',2,hObject,handles);
  195. end % is on or off?
  196. % Update handles structure
  197. guidata(hObject, handles);
  198. % --- Executes on button press in pushbutton14.
  199. function pushbutton14_Callback(hObject, eventdata, handles)
  200. % hObject handle to pushbutton14 (see GCBO)
  201. % eventdata reserved - to be defined in a future version of MATLAB
  202. % handles structure with handles and user data (see GUIDATA)
  203. if strcmp(get(hObject,'String'),'Off')
  204. powerToggle('On',3,hObject,handles);
  205. else
  206. powerToggle('Off',3,hObject,handles);
  207. end % is on or off?
  208. % Update handles structure
  209. guidata(hObject, handles);
  210. % --- Executes on button press in pushbutton15.
  211. function pushbutton15_Callback(hObject, eventdata, handles)
  212. % hObject handle to pushbutton15 (see GCBO)
  213. % eventdata reserved - to be defined in a future version of MATLAB
  214. % handles structure with handles and user data (see GUIDATA)
  215. if strcmp(get(hObject,'String'),'Off')
  216. powerToggle('On',4,hObject,handles);
  217. else
  218. powerToggle('Off',4,hObject,handles);
  219. end % is on or off?
  220. % Update handles structure
  221. guidata(hObject, handles);
  222. % --- Executes on button press in pushbutton16.
  223. function pushbutton16_Callback(hObject, eventdata, handles)
  224. % hObject handle to pushbutton16 (see GCBO)
  225. % eventdata reserved - to be defined in a future version of MATLAB
  226. % handles structure with handles and user data (see GUIDATA)
  227. if strcmp(get(hObject,'String'),'Off')
  228. powerToggle('On',5,hObject,handles);
  229. else
  230. powerToggle('Off',5,hObject,handles);
  231. end % is on or off?
  232. % Update handles structure
  233. guidata(hObject, handles);
  234. % --- Executes on button press in pushbutton17.
  235. function pushbutton17_Callback(hObject, eventdata, handles)
  236. % hObject handle to pushbutton17 (see GCBO)
  237. % eventdata reserved - to be defined in a future version of MATLAB
  238. % handles structure with handles and user data (see GUIDATA)
  239. if strcmp(get(hObject,'String'),'Off')
  240. powerToggle('On',6,hObject,handles);
  241. else
  242. powerToggle('Off',6,hObject,handles);
  243. end % is on or off?
  244. % Update handles structure
  245. guidata(hObject, handles);
  246. % --- Executes on button press in pushbutton18.
  247. function pushbutton18_Callback(hObject, eventdata, handles)
  248. % hObject handle to pushbutton18 (see GCBO)
  249. % eventdata reserved - to be defined in a future version of MATLAB
  250. % handles structure with handles and user data (see GUIDATA)
  251. if strcmp(get(hObject,'String'),'Off')
  252. powerToggle('On',7,hObject,handles);
  253. else
  254. powerToggle('Off',7,hObject,handles);
  255. end % is on or off?
  256. % Update handles structure
  257. guidata(hObject, handles);
  258. % --- Executes on button press in pushbutton19.
  259. function pushbutton19_Callback(hObject, eventdata, handles)
  260. % hObject handle to pushbutton19 (see GCBO)
  261. % eventdata reserved - to be defined in a future version of MATLAB
  262. % handles structure with handles and user data (see GUIDATA)
  263. if strcmp(get(hObject,'String'),'Off')
  264. powerToggle('On',8,hObject,handles);
  265. else
  266. powerToggle('Off',8,hObject,handles);
  267. end % is on or off?
  268. % Update handles structure
  269. guidata(hObject, handles);
  270. % --- Executes on button press in pushbutton20.
  271. function pushbutton20_Callback(hObject, eventdata, handles)
  272. % hObject handle to pushbutton20 (see GCBO)
  273. % eventdata reserved - to be defined in a future version of MATLAB
  274. % handles structure with handles and user data (see GUIDATA)
  275. global PS
  276. if strcmp(get(hObject,'String'),'Monitor Off')
  277. PS.doMonitor=true;
  278. set(handles.pushbutton20,'BackgroundColor',PS.guiCol.green);
  279. set(handles.pushbutton20,'String','Monitor On');
  280. else
  281. PS.doMonitor=false;
  282. set(handles.pushbutton20,'BackgroundColor',PS.guiCol.red);
  283. set(handles.pushbutton20,'String','Monitor Off');
  284. end % if monitor button off
  285. % Update handles structure
  286. guidata(hObject, handles);
  287. % --- Executes on button press in pushbutton21.
  288. function pushbutton21_Callback(hObject, eventdata, handles)
  289. % hObject handle to pushbutton21 (see GCBO)
  290. % eventdata reserved - to be defined in a future version of MATLAB
  291. % handles structure with handles and user data (see GUIDATA)
  292. global PS
  293. % Close this and any open gui associated with this
  294. try
  295. openGui=fieldnames(PS.gui);
  296. for iField=1:length(openGui)
  297. if ~strcmp(openGui{iField},'main')
  298. delete(PS.gui.(openGui{iField}).figure1);
  299. PS.gui = rmfield(PS.gui,openGui{iField});
  300. end % if not main gui
  301. end % for iField
  302. delete(PS.gui.main.figure1);
  303. PS.gui = rmfield(PS.gui,'main');
  304. exit
  305. catch
  306. delete(gcf)
  307. rethrow(lasterror)
  308. end % try/catch
  309. function powerToggle(onoff, iPS, hObject, handles)
  310. global PS
  311. if ~PS.stat.lmode(PS.ptr==iPS)
  312. switch onoff
  313. case 'Off'
  314. % First set current -> 0 if not already
  315. lcaput(PS.cmd.curSet{PS.ptr==iPS},0);
  316. lcaput(PS.cmd.ramp{PS.ptr==iPS},PS.cmd.rampVal(PS.ptr==iPS));
  317. % Wait for ramp to finish
  318. pause(lcaget(PS.cmd.tRamp(PS.ptr==iPS))*0.01);
  319. pause(0.1);
  320. % Update PS panel if open
  321. psGui=['ps_panel',num2str(iPS)];
  322. if isfield(PS.gui,psGui)
  323. % Fix case where gui window killed but gui flag still there
  324. isReallyThere=true;
  325. try
  326. findobj(PS.gui.(psGui).figure1);
  327. catch
  328. PS.gui=rmfield(PS.gui,psGui);
  329. isReallyThere=false;
  330. end % try/catch
  331. if isReallyThere
  332. % Set current box -> 0
  333. set(PS.gui.(['ps_panel',num2str(iPS)]).edit1,'String','0.000');
  334. end % if isReallyThere
  335. end % if PS gui panel open
  336. % Switch off command
  337. lcaput(PS.cmd.pwrOff{PS.ptr==iPS},PS.cmd.pwrOffVal(PS.ptr==iPS));
  338. if PS.simMode.val
  339. set(hObject,'BackgroundColor',PS.guiCol.red);
  340. set(hObject,'String','Off');
  341. end % if simMode
  342. % Update PS panel if open
  343. psGui=['ps_panel',num2str(iPS)];
  344. if isfield(PS.gui,psGui)
  345. % Fix case where gui window killed but gui flag still there
  346. isReallyThere=true;
  347. try
  348. findobj(PS.gui.(psGui).figure1);
  349. catch
  350. PS.gui=rmfield(PS.gui,psGui);
  351. isReallyThere=false;
  352. end % try/catch
  353. if isReallyThere && PS.simMode.val
  354. set(PS.gui.(psGui).pushbutton10,'BackgroundColor',PS.guiCol.red);
  355. set(PS.gui.(psGui).pushbutton10,'String','Power Off');
  356. end % if isReallyThere
  357. end % if PS gui panel open
  358. case 'On'
  359. lcaput(PS.cmd.pwrOn{PS.ptr==iPS},PS.cmd.pwrOnVal(PS.ptr==iPS));
  360. if PS.simMode.val
  361. set(hObject,'BackgroundColor',PS.guiCol.green);
  362. set(hObject,'String','On');
  363. end % if simMode
  364. % Update PS panel if open
  365. psGui=['ps_panel',num2str(iPS)];
  366. if isfield(PS.gui,psGui)
  367. % Fix case where gui window killed but gui flag still there
  368. isReallyThere=true;
  369. try
  370. findobj(PS.gui.(psGui).figure1);
  371. catch
  372. PS.gui=rmfield(PS.gui,psGui);
  373. isReallyThere=false;
  374. end % try/catch
  375. if isReallyThere && PS.simMode.val
  376. set(PS.gui.(psGui).pushbutton10,'BackgroundColor',PS.guiCol.green);
  377. set(PS.gui.(psGui).pushbutton10,'String','Power On');
  378. end % if isReallyThere
  379. end % if PS gui panel open
  380. end % switch onoff
  381. end % if ~ local mode
  382. % Update handles structure
  383. guidata(hObject, handles);
  384. function launch_psPanel(iPS)
  385. global PS
  386. % Lauch PS Panel Gui
  387. if ~isfield(PS.gui,['ps_panel',num2str(iPS)])
  388. PS.gui.(['ps_panel',num2str(iPS)]) = ps_panel(iPS);
  389. else
  390. figure(PS.gui.(['ps_panel',num2str(iPS)]).figure1);
  391. end % if panel already exists
  392. % Update fields
  393. ps_stat(find(PS.ptr==iPS),1);
  394. % --- Executes on button press in pushbutton22.
  395. function pushbutton22_Callback(hObject, eventdata, handles)
  396. % hObject handle to pushbutton22 (see GCBO)
  397. % eventdata reserved - to be defined in a future version of MATLAB
  398. % handles structure with handles and user data (see GUIDATA)
  399. launch_psPanel(1);
  400. % --- Executes on button press in pushbutton23.
  401. function pushbutton23_Callback(hObject, eventdata, handles)
  402. % hObject handle to pushbutton23 (see GCBO)
  403. % eventdata reserved - to be defined in a future version of MATLAB
  404. % handles structure with handles and user data (see GUIDATA)
  405. launch_psPanel(2);
  406. % --- Executes on button press in pushbutton24.
  407. function pushbutton24_Callback(hObject, eventdata, handles)
  408. % hObject handle to pushbutton24 (see GCBO)
  409. % eventdata reserved - to be defined in a future version of MATLAB
  410. % handles structure with handles and user data (see GUIDATA)
  411. launch_psPanel(3);
  412. % --- Executes on button press in pushbutton25.
  413. function pushbutton25_Callback(hObject, eventdata, handles)
  414. % hObject handle to pushbutton25 (see GCBO)
  415. % eventdata reserved - to be defined in a future version of MATLAB
  416. % handles structure with handles and user data (see GUIDATA)
  417. launch_psPanel(4);
  418. % --- Executes on button press in pushbutton26.
  419. function pushbutton26_Callback(hObject, eventdata, handles)
  420. % hObject handle to pushbutton26 (see GCBO)
  421. % eventdata reserved - to be defined in a future version of MATLAB
  422. % handles structure with handles and user data (see GUIDATA)
  423. launch_psPanel(5);
  424. % --- Executes on button press in pushbutton27.
  425. function pushbutton27_Callback(hObject, eventdata, handles)
  426. % hObject handle to pushbutton27 (see GCBO)
  427. % eventdata reserved - to be defined in a future version of MATLAB
  428. % handles structure with handles and user data (see GUIDATA)
  429. launch_psPanel(6);
  430. % --- Executes on button press in pushbutton28.
  431. function pushbutton28_Callback(hObject, eventdata, handles)
  432. % hObject handle to pushbutton28 (see GCBO)
  433. % eventdata reserved - to be defined in a future version of MATLAB
  434. % handles structure with handles and user data (see GUIDATA)
  435. launch_psPanel(7);
  436. % --- Executes on button press in pushbutton29.
  437. function pushbutton29_Callback(hObject, eventdata, handles)
  438. % hObject handle to pushbutton29 (see GCBO)
  439. % eventdata reserved - to be defined in a future version of MATLAB
  440. % handles structure with handles and user data (see GUIDATA)
  441. launch_psPanel(8);
  442. % --- Executes on button press in pushbutton30.
  443. function pushbutton30_Callback(hObject, eventdata, handles)
  444. % hObject handle to pushbutton30 (see GCBO)
  445. % eventdata reserved - to be defined in a future version of MATLAB
  446. % handles structure with handles and user data (see GUIDATA)
  447. if strcmp(get(hObject,'String'),'Off')
  448. powerToggleBulk('On',1,hObject,handles);
  449. else
  450. powerToggleBulk('Off',1,hObject,handles);
  451. end % is on or off?
  452. % --- Executes on button press in pushbutton31.
  453. function pushbutton31_Callback(hObject, eventdata, handles)
  454. % hObject handle to pushbutton31 (see GCBO)
  455. % eventdata reserved - to be defined in a future version of MATLAB
  456. % handles structure with handles and user data (see GUIDATA)
  457. if strcmp(get(hObject,'String'),'Off')
  458. powerToggleBulk('On',2,hObject,handles);
  459. else
  460. powerToggleBulk('Off',2,hObject,handles);
  461. end % is on or off?
  462. % --- Executes on button press in pushbutton32.
  463. function pushbutton32_Callback(hObject, eventdata, handles)
  464. % hObject handle to pushbutton32 (see GCBO)
  465. % eventdata reserved - to be defined in a future version of MATLAB
  466. % handles structure with handles and user data (see GUIDATA)
  467. if strcmp(get(hObject,'String'),'Off')
  468. powerToggleBulk('On',3,hObject,handles);
  469. else
  470. powerToggleBulk('Off',3,hObject,handles);
  471. end % is on or off?
  472. % --- Executes on button press in pushbutton33.
  473. function pushbutton33_Callback(hObject, eventdata, handles)
  474. % hObject handle to pushbutton33 (see GCBO)
  475. % eventdata reserved - to be defined in a future version of MATLAB
  476. % handles structure with handles and user data (see GUIDATA)
  477. if strcmp(get(hObject,'String'),'Off')
  478. powerToggleBulk('On',4,hObject,handles);
  479. else
  480. powerToggleBulk('Off',4,hObject,handles);
  481. end % is on or off?
  482. % --- Executes on button press in pushbutton34.
  483. function pushbutton34_Callback(hObject, eventdata, handles)
  484. % hObject handle to pushbutton34 (see GCBO)
  485. % eventdata reserved - to be defined in a future version of MATLAB
  486. % handles structure with handles and user data (see GUIDATA)
  487. if strcmp(get(hObject,'String'),'Off')
  488. powerToggleBulk('On',5,hObject,handles);
  489. else
  490. powerToggleBulk('Off',5,hObject,handles);
  491. end % is on or off?
  492. % --- Executes on button press in pushbutton35.
  493. function pushbutton35_Callback(hObject, eventdata, handles)
  494. % hObject handle to pushbutton35 (see GCBO)
  495. % eventdata reserved - to be defined in a future version of MATLAB
  496. % handles structure with handles and user data (see GUIDATA)
  497. if strcmp(get(hObject,'String'),'Off')
  498. powerToggleBulk('On',6,hObject,handles);
  499. else
  500. powerToggleBulk('Off',6,hObject,handles);
  501. end % is on or off?
  502. % --- Executes on button press in pushbutton36.
  503. function pushbutton36_Callback(hObject, eventdata, handles)
  504. % hObject handle to pushbutton36 (see GCBO)
  505. % eventdata reserved - to be defined in a future version of MATLAB
  506. % handles structure with handles and user data (see GUIDATA)
  507. if strcmp(get(hObject,'String'),'Off')
  508. powerToggleBulk('On',7,hObject,handles);
  509. else
  510. powerToggleBulk('Off',7,hObject,handles);
  511. end % is on or off?
  512. % --- Executes on button press in pushbutton37.
  513. function pushbutton37_Callback(hObject, eventdata, handles)
  514. % hObject handle to pushbutton37 (see GCBO)
  515. % eventdata reserved - to be defined in a future version of MATLAB
  516. % handles structure with handles and user data (see GUIDATA)
  517. if strcmp(get(hObject,'String'),'Off')
  518. powerToggleBulk('On',8,hObject,handles);
  519. else
  520. powerToggleBulk('Off',8,hObject,handles);
  521. end % is on or off?
  522. function powerToggleBulk(onOff,iPS,hObject,handles)
  523. global PS
  524. switch onOff
  525. case 'On'
  526. lcaput(PS.cmd.bulkPwr{find(PS.ptr==iPS)},1);
  527. if PS.simMode.val
  528. set(hObject,'BackgroundColor',PS.guiCol.green);
  529. set(hObject,'String','On');
  530. end % if simMode
  531. case 'Off'
  532. lcaput(PS.cmd.bulkPwr{find(PS.ptr==iPS)},0);
  533. if PS.simMode.val
  534. set(hObject,'BackgroundColor',PS.guiCol.red);
  535. set(hObject,'String','Off');
  536. end % if simMode
  537. end % switch onOff
  538. % --- Executes on button press in pushbutton38.
  539. function pushbutton38_Callback(hObject, eventdata, handles)
  540. % hObject handle to pushbutton38 (see GCBO)
  541. % eventdata reserved - to be defined in a future version of MATLAB
  542. % handles structure with handles and user data (see GUIDATA)
  543. launch_psPanel(9);
  544. % --- Executes on button press in pushbutton39.
  545. function pushbutton39_Callback(hObject, eventdata, handles)
  546. % hObject handle to pushbutton39 (see GCBO)
  547. % eventdata reserved - to be defined in a future version of MATLAB
  548. % handles structure with handles and user data (see GUIDATA)
  549. launch_psPanel(10);
  550. % --- Executes on button press in pushbutton40.
  551. function pushbutton40_Callback(hObject, eventdata, handles)
  552. % hObject handle to pushbutton40 (see GCBO)
  553. % eventdata reserved - to be defined in a future version of MATLAB
  554. % handles structure with handles and user data (see GUIDATA)
  555. launch_psPanel(11);
  556. % --- Executes on button press in pushbutton41.
  557. function pushbutton41_Callback(hObject, eventdata, handles)
  558. % hObject handle to pushbutton41 (see GCBO)
  559. % eventdata reserved - to be defined in a future version of MATLAB
  560. % handles structure with handles and user data (see GUIDATA)
  561. launch_psPanel(12);
  562. % --- Executes on button press in pushbutton42.
  563. function pushbutton42_Callback(hObject, eventdata, handles)
  564. % hObject handle to pushbutton42 (see GCBO)
  565. % eventdata reserved - to be defined in a future version of MATLAB
  566. % handles structure with handles and user data (see GUIDATA)
  567. launch_psPanel(13);
  568. % --- Executes on button press in pushbutton43.
  569. function pushbutton43_Callback(hObject, eventdata, handles)
  570. % hObject handle to pushbutton43 (see GCBO)
  571. % eventdata reserved - to be defined in a future version of MATLAB
  572. % handles structure with handles and user data (see GUIDATA)
  573. launch_psPanel(14);
  574. % --- Executes on button press in pushbutton44.
  575. function pushbutton44_Callback(hObject, eventdata, handles)
  576. % hObject handle to pushbutton44 (see GCBO)
  577. % eventdata reserved - to be defined in a future version of MATLAB
  578. % handles structure with handles and user data (see GUIDATA)
  579. launch_psPanel(15);
  580. % --- Executes on button press in pushbutton45.
  581. function pushbutton45_Callback(hObject, eventdata, handles)
  582. % hObject handle to pushbutton45 (see GCBO)
  583. % eventdata reserved - to be defined in a future version of MATLAB
  584. % handles structure with handles and user data (see GUIDATA)
  585. launch_psPanel(16);
  586. % --- Executes on button press in pushbutton46.
  587. function pushbutton46_Callback(hObject, eventdata, handles)
  588. % hObject handle to pushbutton46 (see GCBO)
  589. % eventdata reserved - to be defined in a future version of MATLAB
  590. % handles structure with handles and user data (see GUIDATA)
  591. if strcmp(get(hObject,'String'),'Off')
  592. powerToggle('On',9,hObject,handles);
  593. else
  594. powerToggle('Off',9,hObject,handles);
  595. end % is on or off?
  596. % --- Executes on button press in pushbutton47.
  597. function pushbutton47_Callback(hObject, eventdata, handles)
  598. % hObject handle to pushbutton47 (see GCBO)
  599. % eventdata reserved - to be defined in a future version of MATLAB
  600. % handles structure with handles and user data (see GUIDATA)
  601. if strcmp(get(hObject,'String'),'Off')
  602. powerToggle('On',10,hObject,handles);
  603. else
  604. powerToggle('Off',10,hObject,handles);
  605. end % is on or off?
  606. % --- Executes on button press in pushbutton48.
  607. function pushbutton48_Callback(hObject, eventdata, handles)
  608. % hObject handle to pushbutton48 (see GCBO)
  609. % eventdata reserved - to be defined in a future version of MATLAB
  610. % handles structure with handles and user data (see GUIDATA)
  611. if strcmp(get(hObject,'String'),'Off')
  612. powerToggle('On',11,hObject,handles);
  613. else
  614. powerToggle('Off',11,hObject,handles);
  615. end % is on or off?
  616. % --- Executes on button press in pushbutton49.
  617. function pushbutton49_Callback(hObject, eventdata, handles)
  618. % hObject handle to pushbutton49 (see GCBO)
  619. % eventdata reserved - to be defined in a future version of MATLAB
  620. % handles structure with handles and user data (see GUIDATA)
  621. if strcmp(get(hObject,'String'),'Off')
  622. powerToggle('On',12,hObject,handles);
  623. else
  624. powerToggle('Off',12,hObject,handles);
  625. end % is on or off?
  626. % --- Executes on button press in pushbutton50.
  627. function pushbutton50_Callback(hObject, eventdata, handles)
  628. % hObject handle to pushbutton50 (see GCBO)
  629. % eventdata reserved - to be defined in a future version of MATLAB
  630. % handles structure with handles and user data (see GUIDATA)
  631. if strcmp(get(hObject,'String'),'Off')
  632. powerToggle('On',13,hObject,handles);
  633. else
  634. powerToggle('Off',13,hObject,handles);
  635. end % is on or off?
  636. % --- Executes on button press in pushbutton51.
  637. function pushbutton51_Callback(hObject, eventdata, handles)
  638. % hObject handle to pushbutton51 (see GCBO)
  639. % eventdata reserved - to be defined in a future version of MATLAB
  640. % handles structure with handles and user data (see GUIDATA)
  641. if strcmp(get(hObject,'String'),'Off')
  642. powerToggle('On',14,hObject,handles);
  643. else
  644. powerToggle('Off',14,hObject,handles);
  645. end % is on or off?
  646. % --- Executes on button press in pushbutton52.
  647. function pushbutton52_Callback(hObject, eventdata, handles)
  648. % hObject handle to pushbutton52 (see GCBO)
  649. % eventdata reserved - to be defined in a future version of MATLAB
  650. % handles structure with handles and user data (see GUIDATA)
  651. if strcmp(get(hObject,'String'),'Off')
  652. powerToggle('On',15,hObject,handles);
  653. else
  654. powerToggle('Off',15,hObject,handles);
  655. end % is on or off?
  656. % --- Executes on button press in pushbutton53.
  657. function pushbutton53_Callback(hObject, eventdata, handles)
  658. % hObject handle to pushbutton53 (see GCBO)
  659. % eventdata reserved - to be defined in a future version of MATLAB
  660. % handles structure with handles and user data (see GUIDATA)
  661. if strcmp(get(hObject,'String'),'Off')
  662. powerToggle('On',16,hObject,handles);
  663. else
  664. powerToggle('Off',16,hObject,handles);
  665. end % is on or off?
  666. % --- Executes on button press in pushbutton54.
  667. function pushbutton54_Callback(hObject, eventdata, handles)
  668. % hObject handle to pushbutton54 (see GCBO)
  669. % eventdata reserved - to be defined in a future version of MATLAB
  670. % handles structure with handles and user data (see GUIDATA)
  671. launch_psPanel(9);
  672. % --- Executes on button press in pushbutton55.
  673. function pushbutton55_Callback(hObject, eventdata, handles)
  674. % hObject handle to pushbutton55 (see GCBO)
  675. % eventdata reserved - to be defined in a future version of MATLAB
  676. % handles structure with handles and user data (see GUIDATA)
  677. launch_psPanel(10);
  678. % --- Executes on button press in pushbutton56.
  679. function pushbutton56_Callback(hObject, eventdata, handles)
  680. % hObject handle to pushbutton56 (see GCBO)
  681. % eventdata reserved - to be defined in a future version of MATLAB
  682. % handles structure with handles and user data (see GUIDATA)
  683. launch_psPanel(11);
  684. % --- Executes on button press in pushbutton57.
  685. function pushbutton57_Callback(hObject, eventdata, handles)
  686. % hObject handle to pushbutton57 (see GCBO)
  687. % eventdata reserved - to be defined in a future version of MATLAB
  688. % handles structure with handles and user data (see GUIDATA)
  689. launch_psPanel(12);
  690. % --- Executes on button press in pushbutton58.
  691. function pushbutton58_Callback(hObject, eventdata, handles)
  692. % hObject handle to pushbutton58 (see GCBO)
  693. % eventdata reserved - to be defined in a future version of MATLAB
  694. % handles structure with handles and user data (see GUIDATA)
  695. launch_psPanel(13);
  696. % --- Executes on button press in pushbutton59.
  697. function pushbutton59_Callback(hObject, eventdata, handles)
  698. % hObject handle to pushbutton59 (see GCBO)
  699. % eventdata reserved - to be defined in a future version of MATLAB
  700. % handles structure with handles and user data (see GUIDATA)
  701. launch_psPanel(14);
  702. % --- Executes on button press in pushbutton60.
  703. function pushbutton60_Callback(hObject, eventdata, handles)
  704. % hObject handle to pushbutton60 (see GCBO)
  705. % eventdata reserved - to be defined in a future version of MATLAB
  706. % handles structure with handles and user data (see GUIDATA)
  707. launch_psPanel(15);
  708. % --- Executes on button press in pushbutton61.
  709. function pushbutton61_Callback(hObject, eventdata, handles)
  710. % hObject handle to pushbutton61 (see GCBO)
  711. % eventdata reserved - to be defined in a future version of MATLAB
  712. % handles structure with handles and user data (see GUIDATA)
  713. launch_psPanel(16);
  714. % --- Executes on button press in pushbutton62.
  715. function pushbutton62_Callback(hObject, eventdata, handles)
  716. % hObject handle to pushbutton62 (see GCBO)
  717. % eventdata reserved - to be defined in a future version of MATLAB
  718. % handles structure with handles and user data (see GUIDATA)
  719. if strcmp(get(hObject,'String'),'Off')
  720. powerToggleBulk('On',9,hObject,handles);
  721. else
  722. powerToggleBulk('Off',9,hObject,handles);
  723. end % is on or off?
  724. % --- Executes on button press in pushbutton63.
  725. function pushbutton63_Callback(hObject, eventdata, handles)
  726. % hObject handle to pushbutton63 (see GCBO)
  727. % eventdata reserved - to be defined in a future version of MATLAB
  728. % handles structure with handles and user data (see GUIDATA)
  729. if strcmp(get(hObject,'String'),'Off')
  730. powerToggleBulk('On',10,hObject,handles);
  731. else
  732. powerToggleBulk('Off',10,hObject,handles);
  733. end % is on or off?
  734. % --- Executes on button press in pushbutton64.
  735. function pushbutton64_Callback(hObject, eventdata, handles)
  736. % hObject handle to pushbutton64 (see GCBO)
  737. % eventdata reserved - to be defined in a future version of MATLAB
  738. % handles structure with handles and user data (see GUIDATA)
  739. if strcmp(get(hObject,'String'),'Off')
  740. powerToggleBulk('On',11,hObject,handles);
  741. else
  742. powerToggleBulk('Off',11,hObject,handles);
  743. end % is on or off?
  744. % --- Executes on button press in pushbutton65.
  745. function pushbutton65_Callback(hObject, eventdata, handles)
  746. % hObject handle to pushbutton65 (see GCBO)
  747. % eventdata reserved - to be defined in a future version of MATLAB
  748. % handles structure with handles and user data (see GUIDATA)
  749. if strcmp(get(hObject,'String'),'Off')
  750. powerToggleBulk('On',12,hObject,handles);
  751. else
  752. powerToggleBulk('Off',12,hObject,handles);
  753. end % is on or off?
  754. % --- Executes on button press in pushbutton66.
  755. function pushbutton66_Callback(hObject, eventdata, handles)
  756. % hObject handle to pushbutton66 (see GCBO)
  757. % eventdata reserved - to be defined in a future version of MATLAB
  758. % handles structure with handles and user data (see GUIDATA)
  759. if strcmp(get(hObject,'String'),'Off')
  760. powerToggleBulk('On',13,hObject,handles);
  761. else
  762. powerToggleBulk('Off',13,hObject,handles);
  763. end % is on or off?
  764. % --- Executes on button press in pushbutton67.
  765. function pushbutton67_Callback(hObject, eventdata, handles)
  766. % hObject handle to pushbutton67 (see GCBO)
  767. % eventdata reserved - to be defined in a future version of MATLAB
  768. % handles structure with handles and user data (see GUIDATA)
  769. if strcmp(get(hObject,'String'),'Off')
  770. powerToggleBulk('On',14,hObject,handles);
  771. else
  772. powerToggleBulk('Off',14,hObject,handles);
  773. end % is on or off?
  774. % --- Executes on button press in pushbutton68.
  775. function pushbutton68_Callback(hObject, eventdata, handles)
  776. % hObject handle to pushbutton68 (see GCBO)
  777. % eventdata reserved - to be defined in a future version of MATLAB
  778. % handles structure with handles and user data (see GUIDATA)
  779. if strcmp(get(hObject,'String'),'Off')
  780. powerToggleBulk('On',15,hObject,handles);
  781. else
  782. powerToggleBulk('Off',15,hObject,handles);
  783. end % is on or off?
  784. % --- Executes on button press in pushbutton69.
  785. function pushbutton69_Callback(hObject, eventdata, handles)
  786. % hObject handle to pushbutton69 (see GCBO)
  787. % eventdata reserved - to be defined in a future version of MATLAB
  788. % handles structure with handles and user data (see GUIDATA)
  789. if strcmp(get(hObject,'String'),'Off')
  790. powerToggleBulk('On',16,hObject,handles);
  791. else
  792. powerToggleBulk('Off',16,hObject,handles);
  793. end % is on or off?
  794. % --- Executes on button press in pushbutton70.
  795. function pushbutton70_Callback(hObject, eventdata, handles)
  796. % hObject handle to pushbutton70 (see GCBO)
  797. % eventdata reserved - to be defined in a future version of MATLAB
  798. % handles structure with handles and user data (see GUIDATA)
  799. launch_psPanel(17);
  800. % --- Executes on button press in pushbutton71.
  801. function pushbutton71_Callback(hObject, eventdata, handles)
  802. % hObject handle to pushbutton71 (see GCBO)
  803. % eventdata reserved - to be defined in a future version of MATLAB
  804. % handles structure with handles and user data (see GUIDATA)
  805. launch_psPanel(18);
  806. % --- Executes on button press in pushbutton72.
  807. function pushbutton72_Callback(hObject, eventdata, handles)
  808. % hObject handle to pushbutton72 (see GCBO)
  809. % eventdata reserved - to be defined in a future version of MATLAB
  810. % handles structure with handles and user data (see GUIDATA)
  811. if strcmp(get(hObject,'String'),'Off')
  812. powerToggle('On',17,hObject,handles);
  813. else
  814. powerToggle('Off',17,hObject,handles);
  815. end % is on or off?
  816. % --- Executes on button press in pushbutton73.
  817. function pushbutton73_Callback(hObject, eventdata, handles)
  818. % hObject handle to pushbutton73 (see GCBO)
  819. % eventdata reserved - to be defined in a future version of MATLAB
  820. % handles structure with handles and user data (see GUIDATA)
  821. if strcmp(get(hObject,'String'),'Off')
  822. powerToggle('On',18,hObject,handles);
  823. else
  824. powerToggle('Off',18,hObject,handles);
  825. end % is on or off?
  826. % --- Executes on button press in pushbutton74.
  827. function pushbutton74_Callback(hObject, eventdata, handles)
  828. % hObject handle to pushbutton74 (see GCBO)
  829. % eventdata reserved - to be defined in a future version of MATLAB
  830. % handles structure with handles and user data (see GUIDATA)
  831. launch_psPanel(17);
  832. % --- Executes on button press in pushbutton75.
  833. function pushbutton75_Callback(hObject, eventdata, handles)
  834. % hObject handle to pushbutton75 (see GCBO)
  835. % eventdata reserved - to be defined in a future version of MATLAB
  836. % handles structure with handles and user data (see GUIDATA)
  837. launch_psPanel(18);
  838. % --- Executes on button press in pushbutton76.
  839. function pushbutton76_Callback(hObject, eventdata, handles)
  840. % hObject handle to pushbutton76 (see GCBO)
  841. % eventdata reserved - to be defined in a future version of MATLAB
  842. % handles structure with handles and user data (see GUIDATA)
  843. if strcmp(get(hObject,'String'),'Off')
  844. powerToggleBulk('On',17,hObject,handles);
  845. else
  846. powerToggleBulk('Off',17,hObject,handles);
  847. end % is on or off?
  848. % --- Executes on button press in pushbutton77.
  849. function pushbutton77_Callback(hObject, eventdata, handles)
  850. % hObject handle to pushbutton77 (see GCBO)
  851. % eventdata reserved - to be defined in a future version of MATLAB
  852. % handles structure with handles and user data (see GUIDATA)
  853. if strcmp(get(hObject,'String'),'Off')
  854. powerToggleBulk('On',18,hObject,handles);
  855. else
  856. powerToggleBulk('Off',18,hObject,handles);
  857. end % is on or off?
  858. % --- Executes on button press in pushbutton78.
  859. function pushbutton78_Callback(hObject, eventdata, handles)
  860. % hObject handle to pushbutton78 (see GCBO)
  861. % eventdata reserved - to be defined in a future version of MATLAB
  862. % handles structure with handles and user data (see GUIDATA)
  863. launch_psPanel(19);
  864. % --- Executes on button press in pushbutton79.
  865. function pushbutton79_Callback(hObject, eventdata, handles)
  866. % hObject handle to pushbutton79 (see GCBO)
  867. % eventdata reserved - to be defined in a future version of MATLAB
  868. % handles structure with handles and user data (see GUIDATA)
  869. launch_psPanel(20);
  870. % --- Executes on button press in pushbutton80.
  871. function pushbutton80_Callback(hObject, eventdata, handles)
  872. % hObject handle to pushbutton80 (see GCBO)
  873. % eventdata reserved - to be defined in a future version of MATLAB
  874. % handles structure with handles and user data (see GUIDATA)
  875. launch_psPanel(21);
  876. % --- Executes on button press in pushbutton81.
  877. function pushbutton81_Callback(hObject, eventdata, handles)
  878. % hObject handle to pushbutton81 (see GCBO)
  879. % eventdata reserved - to be defined in a future version of MATLAB
  880. % handles structure with handles and user data (see GUIDATA)
  881. launch_psPanel(22);
  882. % --- Executes on button press in pushbutton82.
  883. function pushbutton82_Callback(hObject, eventdata, handles)
  884. % hObject handle to pushbutton82 (see GCBO)
  885. % eventdata reserved - to be defined in a future version of MATLAB
  886. % handles structure with handles and user data (see GUIDATA)
  887. launch_psPanel(23);
  888. % --- Executes on button press in pushbutton83.
  889. function pushbutton83_Callback(hObject, eventdata, handles)
  890. % hObject handle to pushbutton83 (see GCBO)
  891. % eventdata reserved - to be defined in a future version of MATLAB
  892. % handles structure with handles and user data (see GUIDATA)
  893. launch_psPanel(24);
  894. % --- Executes on button press in pushbutton84.
  895. function pushbutton84_Callback(hObject, eventdata, handles)
  896. % hObject handle to pushbutton84 (see GCBO)
  897. % eventdata reserved - to be defined in a future version of MATLAB
  898. % handles structure with handles and user data (see GUIDATA)
  899. launch_psPanel(25);
  900. % --- Executes on button press in pushbutton85.
  901. function pushbutton85_Callback(hObject, eventdata, handles)
  902. % hObject handle to pushbutton85 (see GCBO)
  903. % eventdata reserved - to be defined in a future version of MATLAB
  904. % handles structure with handles and user data (see GUIDATA)
  905. launch_psPanel(26);
  906. % --- Executes on button press in pushbutton86.
  907. function pushbutton86_Callback(hObject, eventdata, handles)
  908. % hObject handle to pushbutton86 (see GCBO)
  909. % eventdata reserved - to be defined in a future version of MATLAB
  910. % handles structure with handles and user data (see GUIDATA)
  911. if strcmp(get(hObject,'String'),'Off')
  912. powerToggle('On',19,hObject,handles);
  913. else
  914. powerToggle('Off',19,hObject,handles);
  915. end % is on or off?
  916. % --- Executes on button press in pushbutton87.
  917. function pushbutton87_Callback(hObject, eventdata, handles)
  918. % hObject handle to pushbutton87 (see GCBO)
  919. % eventdata reserved - to be defined in a future version of MATLAB
  920. % handles structure with handles and user data (see GUIDATA)
  921. if strcmp(get(hObject,'String'),'Off')
  922. powerToggle('On',20,hObject,handles);
  923. else
  924. powerToggle('Off',20,hObject,handles);
  925. end % is on or off?
  926. % --- Executes on button press in pushbutton88.
  927. function pushbutton88_Callback(hObject, eventdata, handles)
  928. % hObject handle to pushbutton88 (see GCBO)
  929. % eventdata reserved - to be defined in a future version of MATLAB
  930. % handles structure with handles and user data (see GUIDATA)
  931. if strcmp(get(hObject,'String'),'Off')
  932. powerToggle('On',21,hObject,handles);
  933. else
  934. powerToggle('Off',21,hObject,handles);
  935. end % is on or off?
  936. % --- Executes on button press in pushbutton89.
  937. function pushbutton89_Callback(hObject, eventdata, handles)
  938. % hObject handle to pushbutton89 (see GCBO)
  939. % eventdata reserved - to be defined in a future version of MATLAB
  940. % handles structure with handles and user data (see GUIDATA)
  941. if strcmp(get(hObject,'String'),'Off')
  942. powerToggle('On',22,hObject,handles);
  943. else
  944. powerToggle('Off',22,hObject,handles);
  945. end % is on or off?
  946. % --- Executes on button press in pushbutton90.
  947. function pushbutton90_Callback(hObject, eventdata, handles)
  948. % hObject handle to pushbutton90 (see GCBO)
  949. % eventdata reserved - to be defined in a future version of MATLAB
  950. % handles structure with handles and user data (see GUIDATA)
  951. if strcmp(get(hObject,'String'),'Off')
  952. powerToggle('On',23,hObject,handles);
  953. else
  954. powerToggle('Off',23,hObject,handles);
  955. end % is on or off?
  956. % --- Executes on button press in pushbutton91.
  957. function pushbutton91_Callback(hObject, eventdata, handles)
  958. % hObject handle to pushbutton91 (see GCBO)
  959. % eventdata reserved - to be defined in a future version of MATLAB
  960. % handles structure with handles and user data (see GUIDATA)
  961. if strcmp(get(hObject,'String'),'Off')
  962. powerToggle('On',24,hObject,handles);
  963. else
  964. powerToggle('Off',24,hObject,handles);
  965. end % is on or off?
  966. % --- Executes on button press in pushbutton92.
  967. function pushbutton92_Callback(hObject, eventdata, handles)
  968. % hObject handle to pushbutton92 (see GCBO)
  969. % eventdata reserved - to be defined in a future version of MATLAB
  970. % handles structure with handles and user data (see GUIDATA)
  971. if strcmp(get(hObject,'String'),'Off')
  972. powerToggle('On',25,hObject,handles);
  973. else
  974. powerToggle('Off',25,hObject,handles);
  975. end % is on or off?
  976. % --- Executes on button press in pushbutton93.
  977. function pushbutton93_Callback(hObject, eventdata, handles)
  978. % hObject handle to pushbutton93 (see GCBO)
  979. % eventdata reserved - to be defined in a future version of MATLAB
  980. % handles structure with handles and user data (see GUIDATA)
  981. if strcmp(get(hObject,'String'),'Off')
  982. powerToggle('On',26,hObject,handles);
  983. else
  984. powerToggle('Off',26,hObject,handles);
  985. end % is on or off?
  986. % --- Executes on button press in pushbutton94.
  987. function pushbutton94_Callback(hObject, eventdata, handles)
  988. % hObject handle to pushbutton94 (see GCBO)
  989. % eventdata reserved - to be defined in a future version of MATLAB
  990. % handles structure with handles and user data (see GUIDATA)
  991. launch_psPanel(19);
  992. % --- Executes on button press in pushbutton95.
  993. function pushbutton95_Callback(hObject, eventdata, handles)
  994. % hObject handle to pushbutton95 (see GCBO)
  995. % eventdata reserved - to be defined in a future version of MATLAB
  996. % handles structure with handles and user data (see GUIDATA)
  997. launch_psPanel(20);
  998. % --- Executes on button press in pushbutton96.
  999. function pushbutton96_Callback(hObject, eventdata, handles)
  1000. % hObject handle to pushbutton96 (see GCBO)
  1001. % eventdata reserved - to be defined in a future version of MATLAB
  1002. % handles structure with handles and user data (see GUIDATA)
  1003. launch_psPanel(21);
  1004. % --- Executes on button press in pushbutton97.
  1005. function pushbutton97_Callback(hObject, eventdata, handles)
  1006. % hObject handle to pushbutton97 (see GCBO)
  1007. % eventdata reserved - to be defined in a future version of MATLAB
  1008. % handles structure with handles and user data (see GUIDATA)
  1009. launch_psPanel(22);
  1010. % --- Executes on button press in pushbutton98.
  1011. function pushbutton98_Callback(hObject, eventdata, handles)
  1012. % hObject handle to pushbutton98 (see GCBO)
  1013. % eventdata reserved - to be defined in a future version of MATLAB
  1014. % handles structure with handles and user data (see GUIDATA)
  1015. launch_psPanel(23);
  1016. % --- Executes on button press in pushbutton99.
  1017. function pushbutton99_Callback(hObject, eventdata, handles)
  1018. % hObject handle to pushbutton99 (see GCBO)
  1019. % eventdata reserved - to be defined in a future version of MATLAB
  1020. % handles structure with handles and user data (see GUIDATA)
  1021. launch_psPanel(24);
  1022. % --- Executes on button press in pushbutton100.
  1023. function pushbutton100_Callback(hObject, eventdata, handles)
  1024. % hObject handle to pushbutton100 (see GCBO)
  1025. % eventdata reserved - to be defined in a future version of MATLAB
  1026. % handles structure with handles and user data (see GUIDATA)
  1027. launch_psPanel(25);
  1028. % --- Executes on button press in pushbutton101.
  1029. function pushbutton101_Callback(hObject, eventdata, handles)
  1030. % hObject handle to pushbutton101 (see GCBO)
  1031. % eventdata reserved - to be defined in a future version of MATLAB
  1032. % handles structure with handles and user data (see GUIDATA)
  1033. launch_psPanel(26);
  1034. % --- Executes on button press in pushbutton102.
  1035. function pushbutton102_Callback(hObject, eventdata, handles)
  1036. % hObject handle to pushbutton102 (see GCBO)
  1037. % eventdata reserved - to be defined in a future version of MATLAB
  1038. % handles structure with handles and user data (see GUIDATA)
  1039. if strcmp(get(hObject,'String'),'Off')
  1040. powerToggleBulk('On',19,hObject,handles);
  1041. else
  1042. powerToggleBulk('Off',19,hObject,handles);
  1043. end % is on or off?
  1044. % --- Executes on button press in pushbutton103.
  1045. function pushbutton103_Callback(hObject, eventdata, handles)
  1046. % hObject handle to pushbutton103 (see GCBO)
  1047. % eventdata reserved - to be defined in a future version of MATLAB
  1048. % handles structure with handles and user data (see GUIDATA)
  1049. if strcmp(get(hObject,'String'),'Off')
  1050. powerToggleBulk('On',20,hObject,handles);
  1051. else
  1052. powerToggleBulk('Off',20,hObject,handles);
  1053. end % is on or off?
  1054. % --- Executes on button press in pushbutton104.
  1055. function pushbutton104_Callback(hObject, eventdata, handles)
  1056. % hObject handle to pushbutton104 (see GCBO)
  1057. % eventdata reserved - to be defined in a future version of MATLAB
  1058. % handles structure with handles and user data (see GUIDATA)
  1059. if strcmp(get(hObject,'String'),'Off')
  1060. powerToggleBulk('On',21,hObject,handles);
  1061. else
  1062. powerToggleBulk('Off',21,hObject,handles);
  1063. end % is on or off?
  1064. % --- Executes on button press in pushbutton105.
  1065. function pushbutton105_Callback(hObject, eventdata, handles)
  1066. % hObject handle to pushbutton105 (see GCBO)
  1067. % eventdata reserved - to be defined in a future version of MATLAB
  1068. % handles structure with handles and user data (see GUIDATA)
  1069. if strcmp(get(hObject,'String'),'Off')
  1070. powerToggleBulk('On',22,hObject,handles);
  1071. else
  1072. powerToggleBulk('Off',22,hObject,handles);
  1073. end % is on or off?
  1074. % --- Executes on button press in pushbutton106.
  1075. function pushbutton106_Callback(hObject, eventdata, handles)
  1076. % hObject handle to pushbutton106 (see GCBO)
  1077. % eventdata reserved - to be defined in a future version of MATLAB
  1078. % handles structure with hand

Large files files are truncated, but you can click here to view the full file