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

fixed not storing the pairs of accessors and process variables correctly to the map

parent eb96dd05
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class IndependentControlCore{
_device.open("Dummy0");
// initialise the synchroniser
_synchroniser.addModule(_device, "MyModule", "");
_synchroniser.addModule(_device, "MyModule", "MyLocation");
// start the device thread, which is executing the main loop
_deviceThread.reset( new boost::thread( boost::bind( &IndependentControlCore::mainLoop, this ) ) );
......
<logicalNameMap>
<module name="MyLocation">
<module name="MyModule">
<constant name="Constant">
<type>integer</type>
<value>42</value>
......
......@@ -55,7 +55,7 @@ namespace mtca4u {
if(reg.getNumberOfDimensions() == 0) {
ScalarRegisterAccessor<int> accessor = device.getScalarRegisterAccessor<int>(reg.getRegisterName());
boost::shared_ptr< ProcessScalar<int> > pv = impl->processVariableManager->createProcessScalar<int>(mtca4u::deviceToControlSystem, pvName);
auto mypair = impl->scalarIntMap[baseName];
auto &mypair = impl->scalarIntMap[baseName];
mypair.first.replace(accessor);
mypair.second = pv;
}
......
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