User Tools

Site Tools


tools:singlestepping

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tools:singlestepping [2017/09/30 17:59] – created graftools:singlestepping [2019/03/14 09:34] (current) – [Single Stepping] graf
Line 1: Line 1:
 ====== Single Stepping of Sequences ====== ====== Single Stepping of Sequences ======
-During the development process it can be useful to be able to run sequences in single stepping mode. +During the development process it can be useful to be able to run sequences in single stepping mode. For this purpose you can remote connect to the machine running the EEROS application and run sequences in single stepping mode. As soon as the sequencer is created (see [[eeros_architecture:sequencer:sequencer|]]) a server is started onto which a client can connect through a TCP/IP connection.  
 + 
 +===== EEROS Application ===== 
 +Define and use a sequencer with  
 +<code cpp> 
 +  auto& sequencer = Sequencer::instance();               // get instance 
 +</code> 
 +After successful compilation start the application 
 + 
 + 
 +===== Single Stepping ===== 
 +On the machine where you wish to control your application sequences you have to install EEROS. Next, navigate to the directory ''tools/sequencer'' in your build directory of the EEROS library. Run ''sequencerUI'' to remotely connect to the machine running your EEROS application and pass its ip-address as a parameter.  
 +<code> 
 +$ ./sequencerUI -i "146.136.10.7" 
 +$ ./sequencerUI -i "localhost"  // if the EEROS application runs on the same machine 
 +</code> 
 +After starting you will be prompted for your input. 
 + 
 +<code> 
 +$ Enter 's' for single step, 'c' for continue, 'b' for break: 
 +</code> 
 +Entering the character 'b' will turn single stepping on and stop the execution of steps. 's' will execute the next step. 'c' will turn single stepping off. \\ 
 +If you want your EEROS application to switch to single stepping mode upon startup you can do so with 
 +<code> 
 +  sequencer.singleStepping(); 
 +</code> 
tools/singlestepping.1506787172.txt.gz · Last modified: 2017/09/30 17:59 by graf