From a46564cc3c4316f4e1a95dcca8f9994b4999b3f3 Mon Sep 17 00:00:00 2001 From: kpetersn Date: Mon, 9 Apr 2018 14:41:31 -0500 Subject: [PATCH] Initialize parameters to avoid asynTraceFlow errors. --- motorApp/AMCISrc/ANF2Driver.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/motorApp/AMCISrc/ANF2Driver.cpp b/motorApp/AMCISrc/ANF2Driver.cpp index f4db66cc..57647c3a 100644 --- a/motorApp/AMCISrc/ANF2Driver.cpp +++ b/motorApp/AMCISrc/ANF2Driver.cpp @@ -404,6 +404,14 @@ ANF2Axis::ANF2Axis(ANF2Controller *pC, int axisNo, epicsInt32 config, epicsInt32 // Delay //epicsThreadSleep(1.0); + // Initialize parameters to avoid ASYN_TRACE_FLOW errors + setIntegerParam(pC_->motorStatusDirection_, 1); + // The following are necessary after this commit: + // https://github.com/epics-modules/motor/commit/36dfab4a78725866fab5bd212c4c128a86e9f044 + setIntegerParam(pC_->motorPowerAutoOnOff_, 0); + setDoubleParam(pC_->motorPowerOnDelay_, 0.0); + setDoubleParam(pC_->motorPowerOffDelay_, 0.0); + // Tell the driver the axis has been created pC_->axesCreated_ += 1;