Changes between Version 29 and Version 30 of Tutorials/a0Basic/Tutorial2
- Timestamp:
- Feb 12, 2013, 5:26:02 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/a0Basic/Tutorial2
v29 v30 1 [wiki:Tutorial Back]2 [[TOC(heading=Tutorial TOC, Tutorial , Tutorial/HelloWorld, depth=2)]]1 [wiki:Tutorials Back] 2 [[TOC(heading=Tutorial TOC, Tutorials, Tutorials/HelloWorld, depth=2)]] 3 3 4 4 = Basic Tutorial: Hello World Example = … … 6 6 == 1. Developing a Script for an Experiment == 7 7 8 As explained in the previous [wiki: Tutorial/Testbed overview] page, to run an experiment on the testbed a user needs to first describes this experiment in a ''script''. This ''script'' is then passed on to a '''Node Handler''', which will use it to run and control the experiment execution. This process is illustrated on the following fig1.9 10 This script contains the experiment configuration and scenario. More precisely, it includes:8 As explained in the previous [wiki:NodeHandler/Tutorial/Testbed overview] page, to run an experiment on the testbed a user needs to first describe the experiment in a ''script''. This ''script'' is then passed on to a '''Node Handler''', which will use it to run and control the experiment execution. This process is illustrated in figure 1. 9 10 This script contains the experiment configuration and scenario. More precisely, it includes: 11 11 * a description of the required resources (e.g. nodes on the testbed, applications to run), 12 12 * their initializations and optional associations (e.g. nodeX is connected to NodeY, all nodes use channel 6 of 802.11g), 13 13 * a description of their operation throughout the experiment duration (e.g. applicationX starts at T0 and run for 60sec, nodeY switch wireless configuration after 100sec). 14 14 15 ORBIT experiment scripts are written using the Ruby scripting language. However, a user does '''not''' necessar y need to be familiar with Ruby to be able to write and run simple experiments. The only prerequisite skills are some prior basic knowledge and practice of any other scripting and/or programming languages (e.g. python, perl, c, java,...). Of course, to be able to develop more complex experiment,a user will have to learn basics of Ruby and read about ORBIT-specific Ruby methods at some stage (more on these two issues at the end of this tutorial).15 ORBIT experiment scripts are written using the Ruby scripting language. However, a user does '''not''' necessarily need to be familiar with Ruby to be able to write and run simple experiments. The only prerequisite skills are some prior basic knowledge and practice of any other scripting and/or programming languages (e.g. python, perl, c, java,...). Of course, to be able to develop more complex experiments a user will have to learn basics of Ruby and read about ORBIT-specific Ruby methods at some stage (more on these two issues at the end of this tutorial). 16 16 17 17 [[Image(OMF-User-View.png)]]