demoApp3.cc 982 B
// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <ChimeraTK/ApplicationCore/ApplicationCore.h>
#include <ChimeraTK/ApplicationCore/EnableXMLGenerator.h>
#include <ChimeraTK/ApplicationCore/PeriodicTrigger.h>
namespace ctk = ChimeraTK;
struct ExampleApp : public ctk::Application {
ExampleApp() : Application("exampleApp3") { debugMakeConnections(); }
~ExampleApp() { shutdown(); }
ctk::SetDMapFilePath dmapPath{"example2.dmap"};
ctk::PeriodicTrigger timer{this, "Timer", "Periodic timer for the controller", 1000};
// ctk::DeviceModule dev{this, "oven"};
ctk::DeviceModule dev{this, "oven", "/Timer/tick"};
// ctk::ControlSystemModule cs;
// void defineConnections();
};
static ExampleApp theExampleApp;
// void ExampleApp::defineConnections() {
// ChimeraTK::setDMapFilePath("example2.dmap");
// dev.connectTo(cs, timer.tick);
// }