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

TestFacility: read all initial values of the PVs after the app started, if present.

parent 4ffd6536
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,13 @@ namespace ChimeraTK {
if(allOpened) break;
}
Application::testableModeLock("waitDevicesToOpen");
// receive all initial values for the control system variables
for(auto& pv : pvManager->getAllProcessVariables()) {
callForType(pv->getValueType(), [&pv, this](auto arg) {
if(!pv->isReadable()) return;
pv->readNonBlocking();
});
}
}
/** Perform a "step" of the application. This runs the application until all
......
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