eeros_architecture:safety_system:hal
Differences
This shows you the differences between two versions of the page.
| eeros_architecture:safety_system:hal [2015/03/30 15:17] – external edit 127.0.0.1 | eeros_architecture:safety_system:hal [2017/04/15 20:35] (current) – removed graf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Hardware Abstraction Layer (HAL) ====== | ||
| - | <box 100% green> | ||
| - | The safety system and the HAL are strongly coupled together. Make sure that your inputs and outputs in the HAL are all handled by your safety system. | ||
| - | </ | ||
| - | |||
| - | ===== Getting the HAL ==== | ||
| - | Make an instance of the HAL with the following line: | ||
| - | <code c> | ||
| - | HAL& hal = HAL:: | ||
| - | </ | ||
| - | |||
| - | ===== Inputs and Outputs ===== | ||
| - | All input and output should be observed by the safety system. The safety system alone decides if an input or output can be applied or not. | ||
| - | |||
| - | === Define inputs and outputs === | ||
| - | To access the digital I/O hardware within the comedi framework, you have to define the inputs and outputs and add them to the HAL. | ||
| - | <code c> | ||
| - | ComediDevice* comedi0 = new ComediDevice("/ | ||
| - | ComediDevice* comedi1 = new ComediDevice("/ | ||
| - | | ||
| - | hal.addSystemInput(new ComediFqd(" | ||
| - | hal.addSystemOutput(new ComediDigOut(" | ||
| - | hal.addSystemOutput(new ComediDigOut(" | ||
| - | hal.addSystemOutput(new ComediDigOut(" | ||
| - | </ | ||
| - | |||
| - | * **Note:** The class // | ||
eeros_architecture/safety_system/hal.1427721453.txt.gz · Last modified: 2015/03/30 15:17 (external edit)