User Tools

Site Tools


Using the HAL with comedi or flink

In the EEROS library you will find a directory with examples. For this example see HalTest2.cpp.

The system uses real hardware inputs and output. The hardware could be comedi or flink. You also need to install the necessary wrapper library, see Installing Hardware Libraries.

Open a shell in the build directory of your EEROS library and run

$ ./halTest2 -c HalTest2ConfigComedi.json  // for comedi
$ ./halTest2 -c HalTest2ConfigFlink.json  // for flink

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.

getting_started/tutorials/hal1.txt · Last modified: 2021/03/31 16:35 by ursgraf