wiki:WARPnet1/BuildClientScripts

Version 3 (modified by sgupta, 14 years ago) (diff)

--

Building and Running Client Scripts

Here we will build and run a client script. To see a complete example refer to the example script?.

Building the Client Script

There are two files that the user control over as the build their custom scripts to control the boards. The first is warpnet_client_experiment_structs.py. This file defines the data structures that are sent back and forth between the FPGA design and the client script. The FPGA design and this file must be in sync for data to be accurately transferred between the two. Let us look at an example to understand how this file is built. The following is the ControlStruct that is used to set basic node parameters. First we see the C struct that is stored in the FPGA. The next is the ControlStruct as seen in warpnet_client_experiment_structs.py.

Running the Client Script

  1. Once the client script has been written, navigate to the folder where it is located.
  2. Run the following:
     python experiment.py