From 1cd43a53b2c30f25fc546d4cfab8bea84e14c823 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Tue, 8 Nov 2016 10:32:48 +0100 Subject: [PATCH] reading back the variable from the device currently does not work, so instead directly pass it to the simulator module. --- example/demoApp.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/example/demoApp.cc b/example/demoApp.cc index 7555d247..f3b36662 100644 --- a/example/demoApp.cc +++ b/example/demoApp.cc @@ -107,9 +107,10 @@ class MyApp : public ctk::Application { controlLoop.actuator >> dev("Variable") >> cs("actuatorLoop"); - dev("Variable") [ controlLoop.actuator ] >> simulator.actuator >> cs("actuatorSimulator"); - - dev("Variable", typeid(double)) [ controlLoop.actuator ] >> cs("actuatorSimulator_direct"); + // TODO Reading back from the device register is not working. Should it work, or should it throw an error? FIXME + //dev("Variable") [ controlLoop.actuator ] >> simulator.actuator >> cs("actuatorSimulator"); + //dev("Variable", typeid(double)) [ controlLoop.actuator ] >> cs("actuatorSimulator_direct"); + controlLoop.actuator >> simulator.actuator >> cs("actuatorSimulator"); simulator.readback >> controlLoop.readback >> cs("readback") >> cs("readback_another_time"); -- GitLab