WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2007-Jun-26 11:58:01

kshitij
Member
Registered: 2007-Feb-28
Posts: 53

PHY_PROTOTYPING Demo setup...

Kindly describe the setup of PHY_PROTOTYPE . I installed the TCP/IP toolbox  and added it to my MATLAB path, but still get the some errors when opening the PhyProtoGui1.fig file:
-------------------------------------------------------------------------------------------------------
??? Attempt to reference field of non-structure array.

Error in ==> PhyProtoGui1>slider_TxGainRF_CreateFcn at 440
set(hObject, 'Value', PhyProtoGUI.TxGainRF);

Error in ==> gui_mainfcn at 75
        feval(varargin{:});

Error in ==> PhyProtoGui1 at 17
    gui_mainfcn(gui_State, varargin{:});

??? Error using ==> PhyProtoGui1('slider_TxGainRF_CreateFcn',gcbo,[],guidata(gcbo))
Attempt to reference field of non-structure array.

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn

??? Attempt to reference field of non-structure array.

Error in ==> PhyProtoGui1>slider_RxGainBB_CreateFcn at 373
set(hObject, 'Value', PhyProtoGUI.RxGainBB);

Error in ==> gui_mainfcn at 75
        feval(varargin{:});

Error in ==> PhyProtoGui1 at 17
    gui_mainfcn(gui_State, varargin{:});

??? Error using ==> PhyProtoGui1('slider_RxGainBB_CreateFcn',gcbo,[],guidata(gcbo))
Attempt to reference field of non-structure array.

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn

??? Attempt to reference field of non-structure array.

Error in ==> PhyProtoGui1>edit_RxGainRF_CreateFcn at 305
set(hObject, 'String', sprintf('274065632', PhyProtoGUI.RxGainRF));

Error in ==> gui_mainfcn at 75
        feval(varargin{:});

Error in ==> PhyProtoGui1 at 17
    gui_mainfcn(gui_State, varargin{:});

??? Error using ==> PhyProtoGui1('edit_RxGainRF_CreateFcn',gcbo,[],guidata(gcbo))
Attempt to reference field of non-structure array.

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn

??? Attempt to reference field of non-structure array.

Error in ==> PhyProtoGui1>edit_RxGainBB_CreateFcn at 329
set(hObject, 'String', sprintf('274064736', PhyProtoGUI.RxGainBB));

Error in ==> gui_mainfcn at 75
        feval(varargin{:});

Error in ==> PhyProtoGui1 at 17
    gui_mainfcn(gui_State, varargin{:});

??? Error using ==> PhyProtoGui1('edit_RxGainBB_CreateFcn',gcbo,[],guidata(gcbo))
Attempt to reference field of non-structure array.

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn

??? Attempt to reference field of non-structure array.

Error in ==> PhyProtoGui1>edit_TxGainRF_CreateFcn at 257
set(hObject, 'String', sprintf('274067424', PhyProtoGUI.TxGainRF));

Error in ==> gui_mainfcn at 75
        feval(varargin{:});

Error in ==> PhyProtoGui1 at 17
    gui_mainfcn(gui_State, varargin{:});

??? Error using ==> PhyProtoGui1('edit_TxGainRF_CreateFcn',gcbo,[],guidata(gcbo))
Attempt to reference field of non-structure array.

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn

??? Attempt to reference field of non-structure array.

Error in ==> PhyProtoGui1>edit_TxGainBB_CreateFcn at 233
set(hObject, 'String', sprintf('274068320', PhyProtoGUI.TxGainBB));

Error in ==> gui_mainfcn at 75
        feval(varargin{:});

Error in ==> PhyProtoGui1 at 17
    gui_mainfcn(gui_State, varargin{:});

??? Error using ==> PhyProtoGui1('edit_TxGainBB_CreateFcn',gcbo,[],guidata(gcbo))
Attempt to reference field of non-structure array.

??? Error using ==> struct2handle
Error while evaluating uicontrol CreateFcn
------------------------------------------------------------------------------------------------------------------------------------------------

Also, there is a PhyProto.c file --> is this the one you  created when you made the peripheral in EDK?

Kindly help..

Offline

 

#2 2007-Jun-26 15:15:11

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: PHY_PROTOTYPING Demo setup...

To use the PhyProto GUI, run 'PhyProtoGui1' on the MATLAB command line. This executes the GUI's initialization script and opens the figure automatically. It may still complain about some initial values the first time; close it and re-run the command if so.

PhyProto.c is the C code that runs in the PowerPC. You can look at it to see how the MATLAB-Ethernet-PowerPC interaction is handled.

Offline

 

#3 2007-Jun-26 17:37:03

kshitij
Member
Registered: 2007-Feb-28
Posts: 53

Re: PHY_PROTOTYPING Demo setup...

Thanks... Regarding the setup, I recall there were two WARP nodes and a switch. I am still not sure about the order of connections... please describe the setup.

Offline

 

#4 2007-Jun-27 01:48:21

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: PHY_PROTOTYPING Demo setup...

The basic steps to get the PHY prototyping (soon to be renamed WARPLab) demo working are:

-Install the TCP/UDP toolbox for MATLAB (free from http://www.mathworks.com/matlabcentral/ … tType=File)
-Set your PC's IP address to 10.0.0.100
-Connect your PC and two WARP boards to a common Ethernet switch
-Set the DIP switches on two boards to 0 and 1 (just like in the OFDM reference design)
-Download the 'download_phyProto.bit' bitstream to both boards
-Try one of the examples, like TxRx_Test.m or PhyProtoGui1

Offline

 

#5 2007-Jun-27 01:54:55

kshitij
Member
Registered: 2007-Feb-28
Posts: 53

Re: PHY_PROTOTYPING Demo setup...

Thanks......

Offline

 

#6 2007-Jun-28 13:08:44

kshitij
Member
Registered: 2007-Feb-28
Posts: 53

Re: PHY_PROTOTYPING Demo setup...

Do we need the fixed point toolbox for the 'TxRx_Test.m' file to run? I get the following error:
------------------------------------------
License Manager Error -5.
Cannot find a license for fixed_point_toolbox.
Make sure your license file is correct.
No such feature exists.
Feature:       fixed_point_toolbox
License path:  C:\Program Files\MATLAB\R2006b\bin\win32\license.dat;
   C:\Program Files\MATLAB\R2006b\bin\win32\*.lic
FLEXnet Licensing error:-5,357
For further information, refer to the FLEXnet Licensing End User Guide,
available at "www.macrovision.com".

For more information, see The MathWorks Support page at
http://www.mathworks.com/support and search for
"license manager error -5"
---------------------------------------------

The system setup is as per your instructions mentioned above. On the other hand, when I simply connect the PC to the ethernet (not the switch /WARP nodes) and run the file, I get a timeout message. I suppose this indicates that the program is running fine. Then where does the problem lie?

Offline

 

#7 2007-Jun-28 15:23:31

chunter
Administrator
From: Mango Communications
Registered: 2006-Aug-24
Posts: 1212

Re: PHY_PROTOTYPING Demo setup...

The fixed-point toolbox is used by two functions:
-PhyProto_TxDataSend.m
-PhyProto_RxDataRead.m

The toolbox is used to convert between MATLAB's floating point values and fixed-point values for the ADC/DACs on the radio board.

It should be possible to re-write these functions to do the same conversion explicitly without using the fixed-point toolbox calls.

Offline

 

#8 2007-Nov-09 02:37:38

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: PHY_PROTOTYPING Demo setup...

The updated WARPLab framework no longer requires the fixed-point toolbox.

Offline

 

Board footer