root/ResearchApps/PHY/WARPLAB/WARPLAB_SISO/M_code/warplab_siso_Gui_50MHz.m

Revision 812, 21.0 kB (checked in by MelissaDuarte, 9 months ago)

Adding arp entry for magic sync in the warplab_initialize.m and warplab_siso_GUIinitialize.m functions. Modifying Guis: Commented out the parts of code that were included just for the workshop (to avoid conflict between groups)

Line 
1function varargout = warplab_siso_Gui_50MHz(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_50MHz_OpeningFcn, ...
7                   'gui_OutputFcn',  @warplab_siso_Gui_50MHz_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_50MHz is made visible.
25function warplab_siso_Gui_50MHz_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_50MHz (see VARARGIN)
31% Choose default command line output for warplab_siso_Gui_50MHz
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_50MHz_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:20e-9:(2^14-1)*20e-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:20e-9:(2^14-1)*20e-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%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
120% Start of Code to avoid conflict between users, only needed for the
121% workshop
122%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
123% if(okToUseBoards == 0)
124%       set(hObject, 'Enable', 'On');
125%     set(handles.text_status, 'String', 'Done!');
126%       return;
127% end
128%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
129% End of Code to avoid conflict between users, only needed for the
130% workshop
131%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
132
133
134updateOptions(hObject, eventdata, handles);
135
136%Download the samples to be transmitted
137warplab_writeSMWO(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.radio2TxData, warplab_sisoGUI.RADIO2_TXDATA);
138
139%Enable Tx Radio #2
140warplab_sendCmd(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.RADIO2_TXEN, warplab_sisoGUI.pktNoTx);
141
142%Enable Rx Radio #2
143warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RXEN, warplab_sisoGUI.pktNoTx);
144
145%Enable the transmission
146warplab_sendCmd(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.TX_START, warplab_sisoGUI.pktNoTx);
147
148%Enable the capture
149warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RX_START, warplab_sisoGUI.pktNoTx);
150
151%Send the SYNC packet
152warplab_sendSync(warplab_sisoGUI.udp_Sync);
153
154%Read back the received samples
155global rxData rxOTR rxRSSI;
156
157%Read back the received samples
158[RawRxData] = warplab_readSMRO(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RXDATA, warplab_sisoGUI.TxLength);
159% Process the received samples to obtain meaningful data
160[rxData,rxOTR] = warplab_processRawRxData(RawRxData);
161% Read stored RSSI data
162[RawRSSIData] = warplab_readSMRO(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RSSIDATA, warplab_sisoGUI.TxLength/8);
163% Procecss Raw RSSI data to obtain meningful RSSI values
164[rxRSSI] = warplab_processRawRSSIData(RawRSSIData);
165
166%[rxData rxOTR rxRSSI] = warplab_RxDataRead(warplab_sisoGUI.udp_RxA, 2, warplab_sisoGUI.TxLength);
167evalin('base', 'global rxData rxOTR rxRSSI;');
168
169%Reset the receivers
170warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RX_DONEREADING, warplab_sisoGUI.pktNoTx);
171
172%Disable the receiver
173warplab_sendCmd(warplab_sisoGUI.udp_RxA, warplab_sisoGUI.RADIO2_RXDIS, warplab_sisoGUI.pktNoTx);
174
175%Disable the transmitter
176warplab_sendCmd(warplab_sisoGUI.udp_Tx, warplab_sisoGUI.RADIO2_TXDIS, warplab_sisoGUI.pktNoTx);
177
178% close sockets
179pnet('closeall');
180%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
181% Start of Code to avoid conflict between users, only needed for the
182% workshop
183%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
184% !del c:\boards_lock.txt
185%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
186% End of Code to avoid conflict between users, only needed for the
187% workshop
188%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189
190
191set(handles.text_status, 'String', 'Done!');
192
193axes(handles.axes_I); cla; c = axis(gca);
194plot(real(rxData));
195axis(gca, c); grid on;
196xlabel('Rx I');
197
198axes(handles.axes_Q); cla; c = axis(gca);
199plot(imag(rxData));
200axis(gca, c); grid on;
201xlabel('Rx Q');
202
203freq_axis = 50e6*(0:2^14)/2^14;
204freq_axis_shift = fftshift(freq_axis);
205freq_ticks=[freq_axis_shift(1:2^13)-freq_axis_shift(2^13),freq_axis_shift(2^13+1:2^14+1)];
206
207axes(handles.axes_TxIQ); cla; c = axis(gca);
208spectrum=10*log10(abs(fftshift(fft(warplab_sisoGUI.radio2TxData))));
209plot(freq_ticks(2^12:3*2^12),spectrum(2^12:3*2^12));
210% spectrum=10*log10(abs(fftshift(fft(warplab_sisoGUI.radio2TxData))))
211% plot(freq_ticks,10*log10(abs(fftshift(fft(warplab_sisoGUI.radio2TxData)))));
212%plot(10*log10(abs(fft(warplab_sisoGUI.radio2TxData,2^14))));
213%axis tight;
214grid on;
215xlabel('Tx Spectrum');
216
217axes(handles.axes_RxIQ); cla; c = axis(gca);
218spectrum=10*log10(abs(fftshift(fft(rxData(warplab_sisoGUI.CaptOffset:2^14),2^14))));
219plot(freq_ticks(2^12:3*2^12),spectrum(2^12:3*2^12));
220%plot(10*log10(abs(fftshift(fft(rxData)))));
221%plot(10*log10(abs(fft(rxData,2^14))));
222%axis tight;
223grid on;
224xlabel('Rx Spectrum');
225set(hObject, 'Enable', 'On');
226
227% --- Executes during object creation, after setting all properties.
228function text_status_CreateFcn(hObject, eventdata, handles)
229% hObject    handle to text_status (see GCBO)
230% eventdata  reserved - to be defined in a future version of MATLAB
231% handles    empty - handles not created until after all CreateFcns called
232
233
234
235
236
237% --- Executes during object deletion, before destroying properties.
238function figure1_DeleteFcn(hObject, eventdata, handles)
239% hObject    handle to figure1 (see GCBO)
240% eventdata  reserved - to be defined in a future version of MATLAB
241% handles    structure with handles and user data (see GUIDATA)
242pnet('closeall');
243
244function edit_TxGainBB_Callback(hObject, eventdata, handles)
245% hObject    handle to edit_TxGainBB (see GCBO)
246% eventdata  reserved - to be defined in a future version of MATLAB
247% handles    structure with handles and user data (see GUIDATA)
248
249% Hints: get(hObject,'String') returns contents of edit_TxGainBB as text
250%        str2double(get(hObject,'String')) returns contents of edit_TxGainBB as a double
251
252
253% --- Executes during object creation, after setting all properties.
254function edit_TxGainBB_CreateFcn(hObject, eventdata, handles)
255% hObject    handle to edit_TxGainBB (see GCBO)
256% eventdata  reserved - to be defined in a future version of MATLAB
257% handles    empty - handles not created until after all CreateFcns called
258
259% Hint: edit controls usually have a white background on Windows.
260%       See ISPC and COMPUTER.
261if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
262    set(hObject,'BackgroundColor','white');
263end
264global warplab_sisoGUI;
265set(hObject, 'String', sprintf('%d', warplab_sisoGUI.TxGainBB));
266
267
268function edit_TxGainRF_Callback(hObject, eventdata, handles)
269% hObject    handle to edit_TxGainRF (see GCBO)
270% eventdata  reserved - to be defined in a future version of MATLAB
271% handles    structure with handles and user data (see GUIDATA)
272
273% Hints: get(hObject,'String') returns contents of edit_TxGainRF as text
274%        str2double(get(hObject,'String')) returns contents of edit_TxGainRF as a double
275
276
277% --- Executes during object creation, after setting all properties.
278function edit_TxGainRF_CreateFcn(hObject, eventdata, handles)
279% hObject    handle to edit_TxGainRF (see GCBO)
280% eventdata  reserved - to be defined in a future version of MATLAB
281% handles    empty - handles not created until after all CreateFcns called
282
283% Hint: edit controls usually have a white background on Windows.
284%       See ISPC and COMPUTER.
285if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
286    set(hObject,'BackgroundColor','white');
287end
288global warplab_sisoGUI;
289set(hObject, 'String', sprintf('%d', warplab_sisoGUI.TxGainRF));
290
291
292
293function edit4_Callback(hObject, eventdata, handles)
294% hObject    handle to edit4 (see GCBO)
295% eventdata  reserved - to be defined in a future version of MATLAB
296% handles    structure with handles and user data (see GUIDATA)
297
298% Hints: get(hObject,'String') returns contents of edit4 as text
299%        str2double(get(hObject,'String')) returns contents of edit4 as a double
300
301
302% --- Executes during object creation, after setting all properties.
303function edit4_CreateFcn(hObject, eventdata, handles)
304% hObject    handle to edit4 (see GCBO)
305% eventdata  reserved - to be defined in a future version of MATLAB
306% handles    empty - handles not created until after all CreateFcns called
307
308% Hint: edit controls usually have a white background on Windows.
309%       See ISPC and COMPUTER.
310if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
311    set(hObject,'BackgroundColor','white');
312end
313
314
315
316function edit_RxGainRF_Callback(hObject, eventdata, handles)
317% hObject    handle to edit_RxGainRF (see GCBO)
318% eventdata  reserved - to be defined in a future version of MATLAB
319% handles    structure with handles and user data (see GUIDATA)
320
321% Hints: get(hObject,'String') returns contents of edit_RxGainRF as text
322%        str2double(get(hObject,'String')) returns contents of edit_RxGainRF as a double
323
324
325% --- Executes during object creation, after setting all properties.
326function edit_RxGainRF_CreateFcn(hObject, eventdata, handles)
327% hObject    handle to edit_RxGainRF (see GCBO)
328% eventdata  reserved - to be defined in a future version of MATLAB
329% handles    empty - handles not created until after all CreateFcns called
330
331% Hint: edit controls usually have a white background on Windows.
332%       See ISPC and COMPUTER.
333if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
334    set(hObject,'BackgroundColor','white');
335end
336global warplab_sisoGUI;
337set(hObject, 'String', sprintf('%d', warplab_sisoGUI.RxGainRF));
338
339function edit_RxGainBB_Callback(hObject, eventdata, handles)
340% hObject    handle to edit_RxGainBB (see GCBO)
341% eventdata  reserved - to be defined in a future version of MATLAB
342% handles    structure with handles and user data (see GUIDATA)
343
344% Hints: get(hObject,'String') returns contents of edit_RxGainBB as text
345%        str2double(get(hObject,'String')) returns contents of edit_RxGainBB as a double
346set(handles.slider_RxGainBB, 'Value', str2double(get(hObject,'String')));
347
348
349% --- Executes during object creation, after setting all properties.
350function edit_RxGainBB_CreateFcn(hObject, eventdata, handles)
351% hObject    handle to edit_RxGainBB (see GCBO)
352% eventdata  reserved - to be defined in a future version of MATLAB
353% handles    empty - handles not created until after all CreateFcns called
354
355% Hint: edit controls usually have a white background on Windows.
356%       See ISPC and COMPUTER.
357if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
358    set(hObject,'BackgroundColor','white');
359end
360global warplab_sisoGUI;
361set(hObject, 'String', sprintf('%d', warplab_sisoGUI.RxGainBB));
362
363% --- Executes on slider movement.
364function slider_RxGainBB_Callback(hObject, eventdata, handles)
365% hObject    handle to slider_RxGainBB (see GCBO)
366% eventdata  reserved - to be defined in a future version of MATLAB
367% handles    structure with handles and user data (see GUIDATA)
368
369% Hints: get(hObject,'Value') returns position of slider
370%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
371set(handles.edit_RxGainBB, 'String', round(get(hObject, 'Value')));
372
373% --- Executes during object creation, after setting all properties.
374function slider_RxGainBB_CreateFcn(hObject, eventdata, handles)
375% hObject    handle to slider_RxGainBB (see GCBO)
376% eventdata  reserved - to be defined in a future version of MATLAB
377% handles    empty - handles not created until after all CreateFcns called
378
379% Hint: slider controls usually have a light gray background.
380if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
381    set(hObject,'BackgroundColor',[.9 .9 .9]);
382end
383global warplab_sisoGUI;
384set(hObject, 'Value', warplab_sisoGUI.RxGainBB);
385
386function edit_CaptureOffset_Callback(hObject, eventdata, handles)
387% hObject    handle to edit_CaptureOffset (see GCBO)
388% eventdata  reserved - to be defined in a future version of MATLAB
389% handles    structure with handles and user data (see GUIDATA)
390
391% Hints: get(hObject,'String') returns contents of edit_CaptureOffset as text
392%        str2double(get(hObject,'String')) returns contents of edit_CaptureOffset as a double
393
394
395% --- Executes during object creation, after setting all properties.
396function edit_CaptureOffset_CreateFcn(hObject, eventdata, handles)
397% hObject    handle to edit_CaptureOffset (see GCBO)
398% eventdata  reserved - to be defined in a future version of MATLAB
399% handles    empty - handles not created until after all CreateFcns called
400
401% Hint: edit controls usually have a white background on Windows.
402%       See ISPC and COMPUTER.
403if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
404    set(hObject,'BackgroundColor','white');
405end
406
407function edit_Channel_Callback(hObject, eventdata, handles)
408% hObject    handle to edit_Channel (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
412% Hints: get(hObject,'String') returns contents of edit_Channel as text
413%        str2double(get(hObject,'String')) returns contents of edit_Channel as a double
414
415
416% --- Executes during object creation, after setting all properties.
417function edit_Channel_CreateFcn(hObject, eventdata, handles)
418% hObject    handle to edit_Channel (see GCBO)
419% eventdata  reserved - to be defined in a future version of MATLAB
420% handles    empty - handles not created until after all CreateFcns called
421
422% Hint: edit controls usually have a white background on Windows.
423%       See ISPC and COMPUTER.
424if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
425    set(hObject,'BackgroundColor','white');
426end
427
428
429function updateOptions(hObject, eventdata, handles)
430global warplab_sisoGUI;
431warplab_siso_GUIdefines;
432warplab_sisoGUI.TxGainBB = eval(get(handles.edit_TxGainBB, 'String'));
433warplab_sisoGUI.TxGainRF = eval(get(handles.edit_TxGainRF, 'String'));
434warplab_sisoGUI.RxGainBB = eval(get(handles.edit_RxGainBB, 'String'));
435warplab_sisoGUI.RxGainRF = eval(get(handles.edit_RxGainRF, 'String'));
436warplab_sisoGUI.CaptOffset = eval(get(handles.edit_CaptureOffset, 'String'));
437warplab_sisoGUI.CarrierChannel = eval(get(handles.edit_Channel, 'String'));
438
439%Define the options vector; the order of opitons is set by the FPGA's code
440warplab_sisoGUI.optionsVector = [warplab_sisoGUI.CaptOffset warplab_sisoGUI.TxLength-1 (warplab_sisoGUI.RxGainBB + warplab_sisoGUI.RxGainRF*2^16) (warplab_sisoGUI.TxGainRF + warplab_sisoGUI.TxGainBB*2^16) warplab_sisoGUI.CarrierChannel];
441warplab_setOptions(warplab_sisoGUI.socketHandles,warplab_sisoGUI.optionsVector);
442
443
444% --- Executes during object creation, after setting all properties.
445function axes_RxIQ_CreateFcn(hObject, eventdata, handles)
446% hObject    handle to axes_RxIQ (see GCBO)
447% eventdata  reserved - to be defined in a future version of MATLAB
448% handles    empty - handles not created until after all CreateFcns called
449
450% Hint: place code in OpeningFcn to populate axes_RxIQ
451axis(gca, [-1 1 -1 1]);
452grid on;
453
454
455% --- Executes during object creation, after setting all properties.
456function axes_TxIQ_CreateFcn(hObject, eventdata, handles)
457% hObject    handle to axes_RxIQ (see GCBO)
458% eventdata  reserved - to be defined in a future version of MATLAB
459% handles    empty - handles not created until after all CreateFcns called
460
461% Hint: place code in OpeningFcn to populate axes_RxIQ
462axis(gca, [-1 1 -1 1]);
463grid on;
464
465
466
467
468% --- Executes on slider movement.
469function slider_TxGainRF_Callback(hObject, eventdata, handles)
470% hObject    handle to slider_TxGainRF (see GCBO)
471% eventdata  reserved - to be defined in a future version of MATLAB
472% handles    structure with handles and user data (see GUIDATA)
473
474% Hints: get(hObject,'Value') returns position of slider
475%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider
476set(handles.edit_TxGainRF, 'String', round(get(hObject, 'Value')));
477
478% --- Executes during object creation, after setting all properties.
479function slider_TxGainRF_CreateFcn(hObject, eventdata, handles)
480% hObject    handle to slider_TxGainRF (see GCBO)
481% eventdata  reserved - to be defined in a future version of MATLAB
482% handles    empty - handles not created until after all CreateFcns called
483
484% Hint: slider controls usually have a light gray background.
485if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
486    set(hObject,'BackgroundColor',[.9 .9 .9]);
487end
488global warplab_sisoGUI;
489set(hObject, 'Value', warplab_sisoGUI.TxGainRF);
490
491% --- Executes during object creation, after setting all properties.
492function axes_I_CreateFcn(hObject, eventdata, handles)
493% hObject    handle to axes_I (see GCBO)
494% eventdata  reserved - to be defined in a future version of MATLAB
495% handles    empty - handles not created until after all CreateFcns called
496
497% Hint: place code in OpeningFcn to populate axes_I
498axis(gca, [1 2^14 -1 1]);
499grid on;
500
501% --- Executes during object creation, after setting all properties.
502function axes_Q_CreateFcn(hObject, eventdata, handles)
503% hObject    handle to axes_Q (see GCBO)
504% eventdata  reserved - to be defined in a future version of MATLAB
505% handles    empty - handles not created until after all CreateFcns called
506
507% Hint: place code in OpeningFcn to populate axes_Q
508xlabel(hObject,'Rx Q');
509axis(gca, [1 2^14 -1 1]);
510grid on;
511%xlabel('Rx Q');
512%plot(imag(rxData));
513%axis(gca, c); grid on;
514
515
516
Note: See TracBrowser for help on using the browser.