root/ResearchApps/PHY/WARPLAB/WARPLab_SISO_MIMO2x2/M_Code/warplab_siso_Gui.m

Revision 844, 20.9 kB (checked in by MelissaDuarte, 4 months ago)

Removing boards lock code from Gui. Boards lock code is only needed for the workshop.

Line 
1function varargout = warplab_siso_Gui(varargin)
2% Begin initialization code - DO NOT EDIT
3gui_Singleton = 1;
4gui_State = struct('gui_Name',       mfilename, ...
5                   'gui_Singleton',  gui_Singleton, ...
6                   'gui_OpeningFcn', @warplab_siso_Gui_OpeningFcn, ...
7                   'gui_OutputFcn',  @warplab_siso_Gui_OutputFcn, ...
8                   'gui_LayoutFcn'[] , ...
9                   'gui_Callback',   []);
10if nargin && ischar(varargin{1})
11    gui_State.gui_Callback = str2func(varargin{1});
12end
13
14if nargout
15    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
16else
17    gui_mainfcn(gui_State, varargin{:});
18end
19% End initialization code - DO NOT EDIT
20global warplab_sisoGUI;
21warplab_siso_GUIdefines;
22
23
24% --- Executes just before warplab_siso_Gui is made visible.
25function warplab_siso_Gui_OpeningFcn(hObject, eventdata, handles, varargin)
26% This function has no output args, see OutputFcn.
27% hObject    handle to figure
28% eventdata  reserved - to be defined in a future version of MATLAB
29% handles    structure with handles and user data (see GUIDATA)
30% varargin   command line arguments to warplab_siso_Gui (see VARARGIN)
31% Choose default command line output for warplab_siso_Gui
32handles.output = hObject;
33% Update handles structure
34guidata(hObject, handles);
35
36%Close any stale sockets
37pnet('closeall');
38
39global warplab_sisoGUI;
40
41%Options
42warplab_sisoGUI.CaptOffset = 1000;
43warplab_sisoGUI.TxLength = 16384;
44warplab_sisoGUI.TxGainBB = 3; %Tx Baseband Gain [0:3]
45warplab_sisoGUI.TxGainRF = 40; %Tx RF Gain - [0:63]
46warplab_sisoGUI.RxGainBB = 20; %Rx Baseband Gain - [0:31]
47warplab_sisoGUI.RxGainRF = 1; %Rx RF Gain - [1:3]
48warplab_sisoGUI.CarrierChannel = 11;
49
50% Axes
51axes(handles.axes_I);
52xlabel('Rx I');
53
54axes(handles.axes_Q);
55xlabel('Rx Q');
56
57axes(handles.axes_TxIQ);
58xlabel('Tx Spectrum');
59
60axes(handles.axes_RxIQ);
61xlabel('Rx Spectrum');
62
63
64
65% --- Outputs from this function are returned to the command line.
66function varargout = warplab_siso_Gui_OutputFcn(hObject, eventdata, handles)
67% varargout  cell array for returning output args (see VARARGOUT);
68% hObject    handle to figure
69% eventdata  reserved - to be defined in a future version of MATLAB
70% handles    structure with handles and user data (see GUIDATA)
71
72% Get default command line output from handles structure
73varargout{1} = handles.output;
74
75
76
77function edit_TxVector_Callback(hObject, eventdata, handles)
78% hObject    handle to edit_TxVector (see GCBO)
79% eventdata  reserved - to be defined in a future version of MATLAB
80% handles    structure with handles and user data (see GUIDATA)
81
82% Hints: get(hObject,'String') returns contents of edit_TxVector as text
83%        str2double(get(hObject,'String')) returns contents of edit_TxVector as a double
84global warplab_sisoGUI;
85warplab_siso_GUIdefines;
86evalin('base','t = 0:25e-9:(2^14-1)*25e-9;');
87warplab_sisoGUI.radio2TxData = evalin('base',get(hObject,'String'));
88
89% --- Executes during object creation, after setting all properties.
90function edit_TxVector_CreateFcn(hObject, eventdata, handles)
91% hObject    handle to edit_TxVector (see GCBO)
92% eventdata  reserved - to be defined in a future version of MATLAB
93% handles    empty - handles not created until after all CreateFcns called
94
95% Hint: edit controls usually have a white background on Windows.
96%       See ISPC and COMPUTER.
97if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
98    set(hObject,'BackgroundColor','white');
99end
100global warplab_sisoGUI;
101warplab_siso_GUIdefines;
102evalin('base','t = 0:25e-9:(2^14-1)*25e-9;');
103warplab_sisoGUI.radio2TxData = evalin('base',get(hObject,'String'));
104
105% --- Executes on button press in pushbutton_Go.
106function pushbutton_Go_Callback(hObject, eventdata, handles)
107% hObject    handle to pushbutton_Go (see GCBO)
108% eventdata  reserved - to be defined in a future version of MATLAB
109% handles    structure with handles and user data (see GUIDATA)
110%Download the samples to be transmitted
111global warplab_sisoGUI;
112set(handles.text_status, 'String', 'Running...');
113
114set(hObject, 'Enable', 'Off');
115% warplab_siso_GUIdefines;
116
117warplab_siso_GUIinitialize;
118%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
119% Start of Code to avoid conflict between users, only needed for the
120% workshop
121%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
122% if(okToUseBoards == 0)
123%       set(hObject, 'Enable', 'On');
124%     set(handles.text_status, 'String', 'Done!');
125%       return;
126% end
127%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
128% End of Code to avoid conflict between users, only needed for the
129% workshop
130%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
131
132updateOptions(hObject, eventdata, handles);
133
134%Download the samples to be transmitted
135warplab_writeSMWO(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.radio2TxData, warplab_sisoGUI.RADIO2_TXDATA);
136
137%Enable Tx Radio #2
138warplab_sendCmd(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.RADIO2_TXEN, warplab_sisoGUI.pktNoTx);
139
140%Enable Rx Radio #2
141warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RXEN, warplab_sisoGUI.pktNoTx);
142
143%Enable the transmission
144warplab_sendCmd(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.TX_START, warplab_sisoGUI.pktNoTx);
145
146%Enable the capture
147warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RX_START, warplab_sisoGUI.pktNoTx);
148
149%Send the SYNC packet
150warplab_sendSync(warplab_sisoGUI.udp_Sync);
151
152%Read back the received samples
153global rxData rxOTR rxRSSI;
154
155%Read back the received samples
156[RawRxData] = warplab_readSMRO(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RXDATA, warplab_sisoGUI.TxLength);
157% Process the received samples to obtain meaningful data
158[rxData,rxOTR] = warplab_processRawRxData(RawRxData);
159% Read stored RSSI data
160[RawRSSIData] = warplab_readSMRO(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RSSIDATA, warplab_sisoGUI.TxLength/8);
161% Procecss Raw RSSI data to obtain meningful RSSI values
162[rxRSSI] = warplab_processRawRSSIData(RawRSSIData);
163
164%[rxData rxOTR rxRSSI] = warplab_RxDataRead(warplab_sisoGUI.udp_RxA, 2, warplab_sisoGUI.TxLength);
165evalin('base', 'global rxData rxOTR rxRSSI;');
166
167%Reset the receivers
168warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RX_DONEREADING, warplab_sisoGUI.pktNoTx);
169
170%Disable the receiver
171warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RXDIS, warplab_sisoGUI.pktNoTx);
172
173%Disable the transmitter
174warplab_sendCmd(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.RADIO2_TXDIS, warplab_sisoGUI.pktNoTx);
175
176% close sockets
177pnet('closeall');
178%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
179% Start of Code to avoid conflict between users, only needed for the
180% workshop
181%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
182% !del c:\boards_lock.txt
183%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
184% End of Code to avoid conflict between users, only needed for the
185% workshop
186%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
187
188set(handles.text_status, 'String', 'Done!');
189
190axes(handles.axes_I); cla; c = axis(gca);
191plot(real(rxData));
192axis(gca, c); grid on;
193xlabel('Rx I');
194
195axes(handles.axes_Q); cla; c = axis(gca);
196plot(imag(rxData));
197axis(gca, c); grid on;
198xlabel('Rx Q');
199
200freq_axis = 40e6*(0:2^14)/2^14;
201freq_axis_shift = fftshift(freq_axis);
202freq_ticks=[freq_axis_shift(1:2^13)-freq_axis_shift(2^13),freq_axis_shift(2^13+1:2^14+1)];
203
204axes(handles.axes_TxIQ); cla; c = axis(gca);
205spectrum=10*log10(abs(fftshift(fft(warplab_sisoGUI.radio2TxData))));
206plot(freq_ticks(2^12:3*2^12),spectrum(2^12:3*2^12));
207% spectrum=10*log10(abs(fftshift(fft(warplab_sisoGUI.radio2TxData))))
208% plot(freq_ticks,10*log10(abs(fftshift(fft(warplab_sisoGUI.radio2TxData)))));
209%plot(10*log10(abs(fft(warplab_sisoGUI.radio2TxData,2^14))));
210%axis tight;
211grid on;
212xlabel('Tx Spectrum');
213
214axes(handles.axes_RxIQ); cla; c = axis(gca);
215spectrum=10*log10(abs(fftshift(fft(rxData(warplab_sisoGUI.CaptOffset:end),2^14))));
216plot(freq_ticks(2^12:3*2^12),spectrum(2^12:3*2^12));
217%plot(10*log10(abs(fftshift(fft(rxData)))));
218%plot(10*log10(abs(fft(rxData,2^14))));
219%axis tight;
220grid on;
221xlabel('Rx Spectrum');
222set(hObject, 'Enable', 'On');
223
224% --- Executes during object creation, after setting all properties.
225function text_status_CreateFcn(hObject, eventdata, handles)
226% hObject    handle to text_status (see GCBO)
227% eventdata  reserved - to be defined in a future version of MATLAB
228% handles    empty - handles not created until after all CreateFcns called
229
230
231
232
233
234% --- Executes during object deletion, before destroying properties.
235function figure1_DeleteFcn(hObject, eventdata, handles)
236% hObject    handle to figure1 (see GCBO)
237% eventdata  reserved - to be defined in a future version of MATLAB
238% handles    structure with handles and user data (see GUIDATA)
239pnet('closeall');
240
241function edit_TxGainBB_Callback(hObject, eventdata, handles)
242% hObject    handle to edit_TxGainBB (see GCBO)
243% eventdata  reserved - to be defined in a future version of MATLAB
244% handles    structure with handles and user data (see GUIDATA)
245
246% Hints: get(hObject,'String') returns contents of edit_TxGainBB as text
247%        str2double(get(hObject,'String')) returns contents of edit_TxGainBB as a double
248
249
250% --- Executes during object creation, after setting all properties.
251function edit_TxGainBB_CreateFcn(hObject, eventdata, handles)
252% hObject    handle to edit_TxGainBB (see GCBO)
253% eventdata  reserved - to be defined in a future version of MATLAB
254% handles    empty - handles not created until after all CreateFcns called
255
256% Hint: edit controls usually have a white background on Windows.
257%       See ISPC and COMPUTER.
258if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
259    set(hObject,'BackgroundColor','white');
260end
261global warplab_sisoGUI;
262set(hObject, 'String', sprintf('%d', warplab_sisoGUI.TxGainBB));
263
264
265function edit_TxGainRF_Callback(hObject, eventdata, handles)
266% hObject    handle to edit_TxGainRF (see GCBO)
267% eventdata  reserved - to be defined in a future version of MATLAB
268% handles    structure with handles and user data (see GUIDATA)
269
270% Hints: get(hObject,'String') returns contents of edit_TxGainRF as text
271%        str2double(get(hObject,'String')) returns contents of edit_TxGainRF as a double
272
273
274% --- Executes during object creation, after setting all properties.
275function edit_TxGainRF_CreateFcn(hObject, eventdata, handles)
276% hObject    handle to edit_TxGainRF (see GCBO)
277% eventdata  reserved - to be defined in a future version of MATLAB
278% handles    empty - handles not created until after all CreateFcns called
279
280% Hint: edit controls usually have a white background on Windows.
281%       See ISPC and COMPUTER.
282if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
283    set(hObject,'BackgroundColor','white');
284end
285global warplab_sisoGUI;
286set(hObject, 'String', sprintf('%d', warplab_sisoGUI.TxGainRF));
287
288
289
290function edit4_Callback(hObject, eventdata, handles)
291% hObject    handle to edit4 (see GCBO)
292% eventdata  reserved - to be defined in a future version of MATLAB
293% handles    structure with handles and user data (see GUIDATA)
294
295% Hints: get(hObject,'String') returns contents of edit4 as text
296%        str2double(get(hObject,'String')) returns contents of edit4 as a double
297
298
299% --- Executes during object creation, after setting all properties.
300function edit4_CreateFcn(hObject, eventdata, handles)
301% hObject    handle to edit4 (see GCBO)
302% eventdata  reserved - to be defined in a future version of MATLAB
303% handles    empty - handles not created until after all CreateFcns called
304
305% Hint: edit controls usually have a white background on Windows.
306%       See ISPC and COMPUTER.
307if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
308    set(hObject,'BackgroundColor','white');
309end
310
311
312
313function edit_RxGainRF_Callback(hObject, eventdata, handles)
314% hObject    handle to edit_RxGainRF (see GCBO)
315% eventdata  reserved - to be defined in a future version of MATLAB
316% handles    structure with handles and user data (see GUIDATA)
317
318% Hints: get(hObject,'String') returns contents of edit_RxGainRF as text
319%        str2double(get(hObject,'String')) returns contents of edit_RxGainRF as a double
320
321
322% --- Executes during object creation, after setting all properties.
323function edit_RxGainRF_CreateFcn(hObject, eventdata, handles)
324% hObject    handle to edit_RxGainRF (see GCBO)
325% eventdata  reserved - to be defined in a future version of MATLAB
326% handles    empty - handles not created until after all CreateFcns called
327
328% Hint: edit controls usually have a white background on Windows.
329%       See ISPC and COMPUTER.
330if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
331    set(hObject,'BackgroundColor','white');
332end
333global warplab_sisoGUI;
334set(hObject, 'String', sprintf('%d', warplab_sisoGUI.RxGainRF));
335
336function edit_RxGainBB_Callback(hObject, eventdata, handles)
337% hObject    handle to edit_RxGainBB (see GCBO)
338% eventdata  reserved - to be defined in a future version of MATLAB
339% handles    structure with handles and user data (see GUIDATA)
340
341% Hints: get(hObject,'String') returns contents of edit_RxGainBB as text
342%        str2double(get(hObject,'String')) returns contents of edit_RxGainBB as a double
343set(handles.slider_RxGainBB, 'Value', str2double(get(hObject,'String')));
344
345
346% --- Executes during object creation, after setting all properties.
347function edit_RxGainBB_CreateFcn(hObject, eventdata, handles)
348% hObject    handle to edit_RxGainBB (see GCBO)
349% eventdata  reserved - to be defined in a future version of MATLAB
350% handles    empty - handles not created until after all CreateFcns called
351
352% Hint: edit controls usually have a white background on Windows.
353%       See ISPC and COMPUTER.
354if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
355    set(hObject,'BackgroundColor','white');
356end
357global warplab_sisoGUI;
358set(hObject, 'String', sprintf('%d', warplab_sisoGUI.RxGainBB));
359
360% --- Executes on slider movement.
361function slider_RxGainBB_Callback(hObject, eventdata, handles)
362% hObject    handle to slider_RxGainBB (see GCBO)
363% eventdata  reserved - to be defined in a future version of MATLAB
364% handles    structure with handles and user data (see GUIDATA)
365
366% Hints: get(hObject,'Value') returns position of slider
367%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
368set(handles.edit_RxGainBB, 'String', round(get(hObject, 'Value')));
369
370% --- Executes during object creation, after setting all properties.
371function slider_RxGainBB_CreateFcn(hObject, eventdata, handles)
372% hObject    handle to slider_RxGainBB (see GCBO)
373% eventdata  reserved - to be defined in a future version of MATLAB
374% handles    empty - handles not created until after all CreateFcns called
375
376% Hint: slider controls usually have a light gray background.
377if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
378    set(hObject,'BackgroundColor',[.9 .9 .9]);
379end
380global warplab_sisoGUI;
381set(hObject, 'Value', warplab_sisoGUI.RxGainBB);
382
383function edit_CaptureOffset_Callback(hObject, eventdata, handles)
384% hObject    handle to edit_CaptureOffset (see GCBO)
385% eventdata  reserved - to be defined in a future version of MATLAB
386% handles    structure with handles and user data (see GUIDATA)
387
388% Hints: get(hObject,'String') returns contents of edit_CaptureOffset as text
389%        str2double(get(hObject,'String')) returns contents of edit_CaptureOffset as a double
390
391
392% --- Executes during object creation, after setting all properties.
393function edit_CaptureOffset_CreateFcn(hObject, eventdata, handles)
394% hObject    handle to edit_CaptureOffset (see GCBO)
395% eventdata  reserved - to be defined in a future version of MATLAB
396% handles    empty - handles not created until after all CreateFcns called
397
398% Hint: edit controls usually have a white background on Windows.
399%       See ISPC and COMPUTER.
400if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
401    set(hObject,'BackgroundColor','white');
402end
403
404function edit_Channel_Callback(hObject, eventdata, handles)
405% hObject    handle to edit_Channel (see GCBO)
406% eventdata  reserved - to be defined in a future version of MATLAB
407% handles    structure with handles and user data (see GUIDATA)
408
409% Hints: get(hObject,'String') returns contents of edit_Channel as text
410%        str2double(get(hObject,'String')) returns contents of edit_Channel as a double
411
412
413% --- Executes during object creation, after setting all properties.
414function edit_Channel_CreateFcn(hObject, eventdata, handles)
415% hObject    handle to edit_Channel (see GCBO)
416% eventdata  reserved - to be defined in a future version of MATLAB
417% handles    empty - handles not created until after all CreateFcns called
418
419% Hint: edit controls usually have a white background on Windows.
420%       See ISPC and COMPUTER.
421if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
422    set(hObject,'BackgroundColor','white');
423end
424
425
426function updateOptions(hObject, eventdata, handles)
427global warplab_sisoGUI;
428warplab_siso_GUIdefines;
429warplab_sisoGUI.TxGainBB = eval(get(handles.edit_TxGainBB, 'String'));
430warplab_sisoGUI.TxGainRF = eval(get(handles.edit_TxGainRF, 'String'));
431warplab_sisoGUI.RxGainBB = eval(get(handles.edit_RxGainBB, 'String'));
432warplab_sisoGUI.RxGainRF = eval(get(handles.edit_RxGainRF, 'String'));
433warplab_sisoGUI.CaptOffset = eval(get(handles.edit_CaptureOffset, 'String'));
434warplab_sisoGUI.CarrierChannel = eval(get(handles.edit_Channel, 'String'));
435
436%Define the options vector; the order of opitons is set by the FPGA's code
437warplab_sisoGUI.optionsVector = [warplab_sisoGUI.CaptOffset warplab_sisoGUI.TxLength-1 0  warplab_sisoGUI.CarrierChannel (warplab_sisoGUI.RxGainBB + warplab_sisoGUI.RxGainRF*2^16) (warplab_sisoGUI.TxGainRF + warplab_sisoGUI.TxGainBB*2^16)];
438warplab_setOptions(warplab_sisoGUI.socketHandles,warplab_sisoGUI.optionsVector);
439
440
441% --- Executes during object creation, after setting all properties.
442function axes_RxIQ_CreateFcn(hObject, eventdata, handles)
443% hObject    handle to axes_RxIQ (see GCBO)
444% eventdata  reserved - to be defined in a future version of MATLAB
445% handles    empty - handles not created until after all CreateFcns called
446
447% Hint: place code in OpeningFcn to populate axes_RxIQ
448axis(gca, [-1 1 -1 1]);
449grid on;
450
451
452% --- Executes during object creation, after setting all properties.
453function axes_TxIQ_CreateFcn(hObject, eventdata, handles)
454% hObject    handle to axes_RxIQ (see GCBO)
455% eventdata  reserved - to be defined in a future version of MATLAB
456% handles    empty - handles not created until after all CreateFcns called
457
458% Hint: place code in OpeningFcn to populate axes_RxIQ
459axis(gca, [-1 1 -1 1]);
460grid on;
461
462
463
464
465% --- Executes on slider movement.
466function slider_TxGainRF_Callback(hObject, eventdata, handles)
467% hObject    handle to slider_TxGainRF (see GCBO)
468% eventdata  reserved - to be defined in a future version of MATLAB
469% handles    structure with handles and user data (see GUIDATA)
470
471% Hints: get(hObject,'Value') returns position of slider
472%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
473set(handles.edit_TxGainRF, 'String', round(get(hObject, 'Value')));
474
475% --- Executes during object creation, after setting all properties.
476function slider_TxGainRF_CreateFcn(hObject, eventdata, handles)
477% hObject    handle to slider_TxGainRF (see GCBO)
478% eventdata  reserved - to be defined in a future version of MATLAB
479% handles    empty - handles not created until after all CreateFcns called
480
481% Hint: slider controls usually have a light gray background.
482if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
483    set(hObject,'BackgroundColor',[.9 .9 .9]);
484end
485global warplab_sisoGUI;
486set(hObject, 'Value', warplab_sisoGUI.TxGainRF);
487
488% --- Executes during object creation, after setting all properties.
489function axes_I_CreateFcn(hObject, eventdata, handles)
490% hObject    handle to axes_I (see GCBO)
491% eventdata  reserved - to be defined in a future version of MATLAB
492% handles    empty - handles not created until after all CreateFcns called
493
494% Hint: place code in OpeningFcn to populate axes_I
495axis(gca, [1 2^14 -1 1]);
496grid on;
497
498% --- Executes during object creation, after setting all properties.
499function axes_Q_CreateFcn(hObject, eventdata, handles)
500% hObject    handle to axes_Q (see GCBO)
501% eventdata  reserved - to be defined in a future version of MATLAB
502% handles    empty - handles not created until after all CreateFcns called
503
504% Hint: place code in OpeningFcn to populate axes_Q
505xlabel(hObject,'Rx Q');
506axis(gca, [1 2^14 -1 1]);
507grid on;
508%xlabel('Rx Q');
509%plot(imag(rxData));
510%axis(gca, c); grid on;
511
512
513
Note: See TracBrowser for help on using the browser.