% GMSK MODULATOR, GUI version, V-1.0
% ANICET DJADA, WEEK-1 FEV. 2016
% anicet.djada@yahoo.fr
% stage and end study work, for engeneer graduate level
% @ EMTRONIX LUXEMBOURG
function varargout = GMSK_MOD_GUI(varargin)
% GMSK_MOD_GUI MATLAB code for GMSK_MOD_GUI.fig
% GMSK_MOD_GUI, by itself, creates a new GMSK_MOD_GUI or raises the existing
% singleton*.
%
% H = GMSK_MOD_GUI returns the handle to a new GMSK_MOD_GUI or the handle to
% the existing singleton*.
%
% GMSK_MOD_GUI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GMSK_MOD_GUI.M with the given input arguments.
%
% GMSK_MOD_GUI('Property','Value',...) creates a new GMSK_MOD_GUI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before GMSK_MOD_GUI_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to GMSK_MOD_GUI_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 GMSK_MOD_GUI
% Last Modified by GUIDE v2.5 04-Feb-2016 16:23:17
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @GMSK_MOD_GUI_OpeningFcn, ...
'gui_OutputFcn', @GMSK_MOD_GUI_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 GMSK_MOD_GUI is made visible.
function GMSK_MOD_GUI_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 GMSK_MOD_GUI (see VARARGIN)
% Choose default command line output for GMSK_MOD_GUI
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
modulateur_GMSK(handles.PB_OPERATE,[],handles)% execution au demarrage
% UIWAIT makes GMSK_MOD_GUI wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = GMSK_MOD_GUI_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;
% --- Executes on selection change in BT.
function BT_Callback(hObject, eventdata, handles)
% hObject handle to BT (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns BT contents as cell array
% contents{get(hObject,'Value')} returns selected item from BT
% --- Executes during object creation, after setting all properties.
function BT_CreateFcn(hObject, eventdata, handles)
% hObject handle to BT (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.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on slider movement.
function slider1_Callback(hObject, eventdata, handles)
% hObject handle to slider1 (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,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
% --- Executes during object creation, after setting all properties.
function slider1_CreateFcn(hObject, eventdata, handles)
% hObject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
% --- Executes on button press in RB_BT_0_3.
function RB_BT_0_3_Callback(hObject, eventdata, handles)
% hObject handle to RB_BT_0_3 (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 RB_BT_0_3
function edit_DRate_Callback(hObject, eventdata, handles)
% hObject handle to edit_DRate (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 edit_DRate as text
% str2double(get(hObject,'String')) returns contents of edit_DRate as a double
modulateur_GMSK(handles.PB_OPERATE,[],handles)
% --- Executes during object creation, after setting all properties.
function edit_DRate_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_DRate (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in popup_OVSF.
function popup_OVSF_Callback(hObject, eventdata, handles)
% hObject handle to popup_OVSF (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popup_OVSF contents as cell array
% contents{get(hObject,'Value')} returns selected item from popup_OVSF
modulateur_GMSK(handles.PB_OPERATE,[],handles)
% --- Executes during object creation, after setting all properties.
function popup_OVSF_CreateFcn(hObject, eventdata, handles)
% hObject handle to popup_OVSF (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.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in PB_OPERATE.
function PB_OPERATE_Callback(hObject, eventdata, handles)
% hObject handle to PB_OPERATE (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
modulateur_GMSK(handles.PB_OPERATE,[],handles)
% --------------------------------------------------------------------
function uibuttongroup_BT_PRODUCT_SelectionChangedFcn(hObject, eventdata, handles)
% hObject handle to the selected object in uibuttongroup1
% eventdata structur