Changeset 10598
- Timestamp:
- 03/02/11 11:42:37 (2 years ago)
- Location:
- documentation/ossie/user-guide-0.8.1
- Files:
-
- 2 modified
-
UserGuide.tex (modified) (1 diff)
-
wavecli.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
documentation/ossie/user-guide-0.8.1/UserGuide.tex
r10577 r10598 27 27 errors per burst will be printed out on the screen while the waveform runs.} 28 28 29 \newcommand{\ossieversion}{0.8. 1}29 \newcommand{\ossieversion}{0.8.2} 30 30 31 31 %@usepackage{html} -
documentation/ossie/user-guide-0.8.1/wavecli.tex
r10577 r10598 13 13 wavecli.py is a command line utility with the same capabilities as Wavedash. It can be used to install, start, query, configure, stop, and uninstall waveforms. It can also be used to list available waveforms on the system or currently running instances of waveforms. Finally, it can be used in an interactive mode that works like c\_wavloader. 14 14 15 \subsection{Installation and Usage} 16 \label{section:wavecli.py_installation_and_usage} 17 wavecli.py is installed to /usr/local/lib/python2.6/dist-packages/wavedash/src by default when OSSIE is installed. It can be used from there or copied anywhere else in the filesystem. To run wavecli.py, invoke it from the command line using python like so: 18 \begin{lstlisting}[] 19 $ python wavecli.py <any flags> 20 \end{lstlisting} 21 15 22 \subsection{Non-interactive mode} 16 23 \label{subsection:wavecli.py_non_interactive_mode} 17 24 To get a listing of available waveforms, use the --listSystemWaveforms flag: 18 25 \begin{lstlisting}[] 19 $ wavecli.py --listSystemWaveforms26 $ python wavecli.py --listSystemWaveforms 20 27 Lab5Example 21 28 pass_data_waveform … … 28 35 Once you know which waveform you wish to run, you need to install it. The --install flag takes the name of the waveform you wish to install and reports back the instance name of the running waveform if successful. 29 36 \begin{lstlisting}[] 30 $ wavecli.py --install ossie_demo37 $ python wavecli.py --install ossie_demo 31 38 Successfully installed ossie_demo_1 32 39 \end{lstlisting} 33 40 Once the waveform has been installed, it can be started using the --start flag and the name of the waveform instance. 34 41 \begin{lstlisting}[] 35 $ wavecli.py --start ossie_demo_142 $ python wavecli.py --start ossie_demo_1 36 43 \end{lstlisting} 37 44 Now that the waveform is running, you can use wavecli.py to query or configure it. In this case, we will query the TxDemo component on the ossie\_demo waveform to find out how much of delay is being placed between sending packets. Then we will configure the waveform to send them faster. 38 45 \begin{lstlisting}[] 39 $ wavecli.py --query ossie_demo_1 TxDemo1 40 [ossie.cf.CF.DataType(id='DCE:1b9ca208-8242-11dc-9ba3-00123f63025f', 41 value=CORBA.Any(CORBA.TC_short, 500))] 46 $ python wavecli.py --query ossie_demo_1 TxDemo1 47 name: packet_delay_ms 48 id: DCE:1b9ca208-8242-11dc-9ba3-00123f63025f 49 type: short 50 value: 500 51 42 52 $ wavecli.py --configure ossie_demo_1 TxDemo1 packet_delay_ms 100 43 53 \end{lstlisting} 44 54 Finally, the waveform should be stopped and uninstalled. These work the same way as starting a waveform: use the --stop or --uninstall flag and supply an instance name. 45 55 \begin{lstlisting}[] 46 $ wavecli.py --stop ossie_demo_147 $ wavecli.py --uninstall ossie_demo_156 $ python wavecli.py --stop ossie_demo_1 57 $ python wavecli.py --uninstall ossie_demo_1 48 58 \end{lstlisting} 49 59 … … 52 62 Wavecli.py also has an interactive mode that can be used to install, start, stop, and uninstall waveforms just like c\_wavLoader. To start wavecli.py in interactive mode, use the -i or --interactive flag. 53 63 \begin{lstlisting}[] 54 $ wavecli.py --interactive64 $ python wavecli.py --interactive 55 65 Found 7 available applications 56 66