In the EEROS library you will find a directory with examples. For this example see HalTest2.cpp.
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.