User Tools

Site Tools


getting_started:tutorials:hal1

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
getting_started:tutorials:hal1 [2021/03/31 16:34] ursgrafgetting_started:tutorials:hal1 [2021/03/31 16:35] (current) ursgraf
Line 1: Line 1:
 ====== Using the HAL with comedi or flink ====== ====== Using the HAL with comedi or flink ======
-In the EEROS library you will find a directory with examples. For this example see [[https://github.com/eeros-project/eeros-framework/blob/master/examples/hal/HalTest2.cpp|HalTest2.cpp]]. Open a shell in the build directory of your EEROS library and run ''examples/hal/halTest2''The system uses real hardware inputs and output. The hardware could be [[eeros_architecture:hal:hardware_libraries#comedi|]] or [[eeros_architecture:hal:hardware_libraries#flink|]]. You also need to install the necessary wrapper library, see [[getting_started:install_wrapper|]]. The following command will run the example +In the EEROS library you will find a directory with examples. For this example see [[https://github.com/eeros-project/eeros-framework/blob/master/examples/hal/HalTest2.cpp|HalTest2.cpp]].  
 + 
 +The system uses real hardware inputs and output. The hardware could be [[eeros_architecture:hal:hardware_libraries#comedi|]] or [[eeros_architecture:hal:hardware_libraries#flink|]]. You also need to install the necessary wrapper library, see [[getting_started:install_wrapper|]].  
 + 
 +Open a shell in the build directory of your EEROS library and run  
 <code> <code>
 $ ./halTest2 -c HalTest2ConfigComedi.json  // for comedi $ ./halTest2 -c HalTest2ConfigComedi.json  // for comedi
 $ ./halTest2 -c HalTest2ConfigFlink.json  // for flink $ ./halTest2 -c HalTest2ConfigFlink.json  // for flink
 </code> </code>
 +
 This examples creates a small control system with a couple of peripheral input and output blocks. This examples creates a small control system with a couple of peripheral input and output blocks.
 The main sequence alters the values on digital and analog outputs periodically. It also logs the digital and analog inputs. The main sequence alters the values on digital and analog outputs periodically. It also logs the digital and analog inputs.
getting_started/tutorials/hal1.1617201278.txt.gz · Last modified: 2021/03/31 16:34 by ursgraf