User Tools

Site Tools


eeros_architecture:safety_system:usage

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:safety_system:usage [2016/11/04 09:57] – [Changing the Safety Level] grafeeros_architecture:safety_system:usage [2017/01/28 17:33] (current) – external edit 127.0.0.1
Line 10: Line 10:
 <code cpp> <code cpp>
 // Create and run executor // Create and run executor
-auto executor = eeros::Executor::instance(); +autoexecutor = eeros::Executor::instance();
-executor.setPeriod(period);+
 executor.setMainTask(safetySys); executor.setMainTask(safetySys);
 </code> </code>
Line 24: Line 23:
   * the sequencer    * the sequencer 
  
-Sometimes you need to fire an event e.g. seStartRunning:+An event can be triggered by the control system or the sequencer by calling:
 <code cpp> <code cpp>
 safetySys.triggerEvent(safetyProperties.seStartRunning); safetySys.triggerEvent(safetyProperties.seStartRunning);
 </code> </code>
 +Please make sure to declare a safety event public if triggered by the control system or the sequencer. Private event can be triggered solely by the safety system itself. 
  
-Info über private context 
  
  
eeros_architecture/safety_system/usage.1478249848.txt.gz · Last modified: 2016/11/04 09:57 by graf