Skip to content
Snippets Groups Projects
Commit f0f206af authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

updated example

parent 2a864e01
No related branches found
No related tags found
No related merge requests found
......@@ -60,14 +60,13 @@ static ExampleApp theExampleApp;
void ExampleApp::defineConnections() {
ChimeraTK::setDMapFilePath("example2.dmap");
config.connectTo(cs);
config.connectTo(cs["Configuration"]);
if(config.get<int>("enableAutomation")) {
automation = Automation(this, "Automation", "Slow setpoint ramping algorithm");
automation.findTag("Controller").connectTo(controller);
automation.findTag("CS").connectTo(cs);
timer.tick >> automation.trigger;
}
controller.findTag("DEV").connectTo(heater, timer.tick);
controller.findTag("CS").connectTo(cs);
findTag("CS").connectTo(cs);
}
<configuration>
<variable name="enableAutomation" type="int32" value="1"/>
</configuration>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment