
%%%%%% Grafische Oberfläche mit guide erstellt %%%%%%

function varargout = Auswertesoftware(varargin)
% AUSWERTESOFTWARE MATLAB code for Auswertesoftware.fig
%      AUSWERTESOFTWARE, by itself, creates a new AUSWERTESOFTWARE or raises the existing
%      singleton*.
%
%      H = AUSWERTESOFTWARE returns the handle to a new AUSWERTESOFTWARE or the handle to
%      the existing singleton*.
%
%      AUSWERTESOFTWARE('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in AUSWERTESOFTWARE.M with the given input arguments.
%
%      AUSWERTESOFTWARE('Property','Value',...) creates a new AUSWERTESOFTWARE or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Auswertesoftware_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Auswertesoftware_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 Auswertesoftware

% Last Modified by GUIDE v2.5 07-Dec-2014 18:57:39

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Auswertesoftware_OpeningFcn, ...
                   'gui_OutputFcn',  @Auswertesoftware_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before Auswertesoftware is made visible.
function Auswertesoftware_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 Auswertesoftware (see VARARGIN)

% Choose default command line output for Auswertesoftware
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% --- Outputs from this function are returned to the command line.
function varargout = Auswertesoftware_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
varargout{1} = handles.output;






%%%%%% csv-Dateien laden und in Arrays speichern %%%%%%

% --- Executes on button press in csvLaden.
function csvLaden_Callback(hObject, eventdata, handles)
[FileName, PathName] = uigetfile('*.csv','Bitte csv-Dateien auswählen','MultiSelect','on');
%M = csvread(FileName,0,0,[0 0 9 6]); 
%csvLaden_Callback = set(handels.Start,'BackgroundColor','red');
%csvLaden_Callback = uicontrol('style','BackgroundColor','red');






%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                    Checkboxen für Auswahl (Anfang)                     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% --- Executes on button press in kompletteAuswertung.
function kompletteAuswertung_Callback(hObject, eventdata, handles)
% hObject    handle to kompletteAuswertung (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 kompletteAuswertung

% --- Executes on button press in Ausgangskennlinie.
function Ausgangskennlinie_Callback(hObject, eventdata, handles)
% hObject    handle to Ausgangskennlinie (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 Ausgangskennlinie

% --- Executes on button press in Transferkennlinie.
function Transferkennlinie_Callback(hObject, eventdata, handles)
% hObject    handle to Transferkennlinie (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 Transferkennlinie

% --- Executes on button press in logTransferkennlinie.
function logTransferkennlinie_Callback(hObject, eventdata, handles)
% hObject    handle to logTransferkennlinie (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 logTransferkennlinie

% --- Executes on button press in LeckstromAusgang.
function LeckstromAusgang_Callback(hObject, eventdata, handles)
% hObject    handle to LeckstromAusgang (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 LeckstromAusgang

% --- Executes on button press in LeckstromTransfer.
function LeckstromTransfer_Callback(hObject, eventdata, handles)
% hObject    handle to LeckstromTransfer (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 LeckstromTransfer

% --- Executes on button press in Schwellspannung.
function Schwellspannung_Callback(hObject, eventdata, handles)
% hObject    handle to Schwellspannung (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 Schwellspannung

% --- Executes on button press in Extraktion.
function Extraktion_Callback(hObject, eventdata, handles)
% hObject    handle to Extraktion (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 Extraktion

% --- Executes on button press in KontaktWiderstand.
function KontaktWiderstand_Callback(hObject, eventdata, handles)
% hObject    handle to KontaktWiderstand (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 KontaktWiderstand

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                    Checkboxen für Auswahl (Ende)                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%






% --- Executes on button press in AuswertungStarten.
function AuswertungStarten_Callback(hObject, eventdata, handles)
% Auswertung starten - Button
% hObject    handle to AuswertungStarten (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)







% --- Executes on button press in AuswertungSpeichern.
function AuswertungSpeichern_Callback(hObject, eventdata, handles)
% Auswertung speichern - Button
% hObject    handle to AuswertungSpeichern (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)





% --- Executes on button press in UebersichtOeffnen.
function UebersichtOeffnen_Callback(hObject, eventdata, handles)
% Übersicht öffnen - Button
% hObject    handle to UebersichtOeffnen (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)







%%%%%% Funktion fertig und Grafische Oberfläche wird geschlossen %%%%%%

% --- Executes on button press in Schliessen.
function Schliessen_Callback(hObject, eventdata, handles)
% Push-Button Schließen. Schließt das aktuelle Fenster
close(gcbf)
