Разработка регулятора синхронного компенсатора

Дипломная работа - Физика

Другие дипломы по предмету Физика

version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns listbox4 contents as cell array

% contents{get(hObject,'Value')} returns selected item from listbox4

% --- Executes during object creation, after setting all properties.listbox4_CreateFcn(hObject, eventdata, handles)

% hObject handle to listbox4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles empty - handles not created until after all CreateFcns called

% Hint: listbox controls usually have a white background on Windows.

% See ISPC and COMPUTER.ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))(hObject,'BackgroundColor','white');

% --- Executes on button press in checkbox1.checkbox1_Callback(hObject, eventdata, handles)

% hObject handle to checkbox1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of checkbox1

% --- Executes on button press in checkbox2.checkbox2_Callback(hObject, eventdata, handles)

% hObject handle to checkbox2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of checkbox2

% --- Executes on button press in togglebutton14.togglebutton14_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton14 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton14

% --- Executes on button press in togglebutton15.togglebutton15_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton15 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton15

% --- Executes on button press in togglebutton11.togglebutton11_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton11 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton11

% --- Executes on button press in togglebutton12.togglebutton12_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton12 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton12

% --- Executes on button press in togglebutton13.togglebutton13_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton13 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton13

% --- Executes on button press in togglebutton1.togglebutton1_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton1

% --- Executes on button press in togglebutton2.togglebutton2_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton2

% --- Executes on button press in togglebutton3.togglebutton3_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton3

% --- Executes on button press in togglebutton4.togglebutton4_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton4

% --- Executes on button press in togglebutton5.togglebutton5_Callback(hObject, eventdata, handles)

% hObject handle to togglebutton5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of togglebutton5

Листинг программы "refregerating"

function varargout = refregerating(varargin)

% REFREGERATING M-file for refregerating.fig

% REFREGERATING, by itself, creates a new REFREGERATING or raises the existing

% singleton*.

%

% H = REFREGERATING returns the handle to a new REFREGERATING or the handle to

% the existing singleton*.

%

% REFREGERATING('CALLBACK',hObject,eventData,handles,...) calls the local

% function named CALLBACK in REFREGERATING.M with the given input arguments.

%

% REFREGERATING('Property','Value',...) creates a new REFREGERATING or raises

% the existing singleton*. Starting from the left, property value pairs are

% applied to the GUI before refregerating_OpeningFcn gets called. An

% unrecognized property name or invalid value makes property application

% stop. All inputs are passed to refregerating_OpeningFcn via varargin.

%

% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one

% instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help refregerating

% Last Modified by GUIDE v2.5 14-Dec-2011 12:43:26

% Begin initialization code - DO NOT EDIT_Singleton = 1;_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @refregerating_OpeningFcn, ...

'gui_OutputFcn', @refregerating_OutputFcn, ...

'gui_LayoutFcn', [] , ...

'gui_Callback', []);nargin && ischar(varargin{1})_State.gui_Callback = str2func(varargin{1});nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});_mainfcn(gui_State, varargin{:});

% End initialization code - DO NOT EDIT

% --- Executes just before refregerating is made visible.refregerating_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% varargin command line arguments to refregerating (see VARARGIN)

% Choose default command line output for refregerating.output = hObject;

% Update handles structure(hObject, handles);_gui(hObject, handles, false);

% UIWAIT makes refregerating wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.varargout = refregerating_OutputFcn(hObject, eventdata, handles)

% varargout cell array for returning output args (see VARARGOUT);

% hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure{1} = handles.output;

% --- Executes during object creation, after setting all properties.density_CreateFcn(hObject, eventdata, handles)

% hObject handle to density (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.

% See ISPC and COMPUTER.ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))(hObject,'BackgroundColor','white');density_Callback(hObject, eventdata, handles)

% hObject handle to density (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of density as text

% str2double(get(hObject,'String')) returns contents of density as a double= str2double(get(hObject, 'String'));isnan(density)(hObject, 'String', 0);('Input must be a number','Error');

% Save the new density value.metricdata.density = density;(hObject,handles)

% --- Executes during object creation, after setting all properties.volume_CreateFcn(hObject, eventdata, handles)

% hObject handle to volume (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usua