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

Added persistency for D_spectrum properties. This resolves #11 partially only,...

Added persistency for D_spectrum properties. This resolves #11 partially only, since there is no option to switch it off. I am not sure if that is needed though.
parent c0c1a42f
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ namespace ChimeraTK {
boost::shared_ptr< mtca4u::NDRegisterAccessor<float> > const &startAccessor,
boost::shared_ptr< mtca4u::NDRegisterAccessor<float> > const &incrementAccessor)
: D_spectrum( doocsPropertyName.c_str(), processArray->getNumberOfSamples(), eqFct),
: D_spectrum( doocsPropertyName.c_str(), processArray->getNumberOfSamples(), eqFct, true),
_processArray( processArray ), _startAccessor(startAccessor), _incrementAccessor(incrementAccessor)
{
if (processArray->isReadable()){
......@@ -33,7 +33,7 @@ namespace ChimeraTK {
}
void DoocsSpectrum::auto_init (void){
D_spectrum::auto_init();
D_spectrum::read();
// send the current value to the device
if (_processArray->isWriteable()){
sendToDevice();
......
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