Version 8 (modified by murphpo, 11 years ago) (diff) |
---|
- TOC "WARPLab7/TOC" is empty!
WARPLab 7: Quick Start
pnet Toolbox
- Install the updated pnet IP/UDP toolbox for MATLAB
- Checkout the source from /PlatformSupport/pnet (or svn co http://warpproject.org/svn/WARP/PlatformSupport/pnet)
- The repository contains a compiled binary for Windows 7 64-bit
- For other platforms, compile the pnet mex function
- Add the pnet folder to your MATLAB path. The pnet folder should contain pnet.m and th pnet.mex binary (i.e. pnet.mexw64)
- Verify pnet is recognized by running pnet('info'); on the MATLAB command line
- Checkout the source from /PlatformSupport/pnet (or svn co http://warpproject.org/svn/WARP/PlatformSupport/pnet)
WARPLab 7 Framework
- Download the WARPLab 7 reference design m-code from /ResearchApps/PHY/WARPLAB/WARPLab7/
- Best to use SVN, to make updates easy: svn co http://warpproject.org/svn/WARP/ResearchApps/PHY/WARPLAB/WARPLab7/
- Open MATLAB and change to the WARPLab7/M_Code_Reference directory
- Run wl_setup on the MATLAB command line
- Follow the prompts to configure your WARPLab environment
Hardware Setup
- For WARP v3 nodes:
- Connect ETH_A to a 1Gb Ethernet switch
- Set the user DIP switch to a unique value on each node, starting at 0
- Configure the FPGA with the reference design. The reference bitstreams are included in the Reference_Bitstreams folder. Unzip download.zip to find download.bit and download.bin (see the [wiki:howto/SD_Config SD config howto for help using the .bin file).
- On boot each node will display its node ID on the right hex display
- The bottom green LED will blink until the Ethernet link is up
- All four green LEDs will blink when the node is ready to accept commands from MATLAB
Examples
- Confirm everything is ready by running wl_initNodes(N), where N is the number of WARP v3 nodes
- Try one of the example scripts in M_Code_Examples