ADApp/pluginSrc/NDPluginStats.cpp
asynStatus  NDPluginStats::writeFloat64(asynUser *pasynUser, epicsFloat64 value)
{
    int function = pasynUser->reason;
    asynStatus status = asynSuccess;
    int computeCentroid, computeProfiles;
    static const char *functionName = "writeFloat64";

    /* Set the parameter and readback in the parameter library.  This may be overwritten when we read back the
     * status at the end, but that's OK */
    status = setDoubleParam(function, value);

    if (function == NDPluginStatsCentroidThreshold) {
        getIntegerParam(NDPluginStatsComputeCentroid, &computeCentroid);
        if (computeCentroid && this->pArrays[0]) {
            doComputeCentroid(this->pArrays[0]);
            getIntegerParam(NDPluginStatsComputeProfiles, &computeProfiles);
            if (computeProfiles) doComputeProfiles(this->pArrays[0]);
        }
    } else {
        /* If this parameter belongs to a base class call its method */
        if (function < FIRST_NDPLUGIN_STATS_PARAM) status = NDPluginDriver::writeFloat64(pasynUser, value);
    }

    /* Do callbacks so higher layers see any changes */
    callParamCallbacks();
    if (status) 
        asynPrint(pasynUser, ASYN_TRACE_ERROR, 
              "%s:%s: error, status=%d function=%d, value=%f\n", 
              driverName, functionName, status, function, value);
    else        
        asynPrint(pasynUser, ASYN_TRACEIO_DRIVER, 
              "%s:%s: function=%d, value=%f\n", 
              driverName, functionName, function, value);
    return status;
}
/** Called when asyn clients call pasynFloat64->write().
  * This function performs actions for some parameters.
  * For all parameters it sets the value in the parameter library and calls any registered callbacks..
  * \param[in] pasynUser pasynUser structure that encodes the reason and address.
  * \param[in] value Value to write. */
Called when asyn clients call pasynFloat64->write().
This function performs actions for some parameters.
For all parameters it sets the value in the parameter library and calls any registered callbacks
\param[in] pasynUser pasynUser structure that encodes the reason and address.
\param[in] value Value to write.
Called when asyn clients call pasynFloat64 - > write () . This function performs actions for some parameters . For all parameters it sets the value in the parameter library and calls any registered callbacks \ param [ in ] pasynUser pasynUser structure that encodes the reason and address . \ param [ in ] value Value to write .
asynStatus  NDPluginStats::writeFloat64(asynUser *pasynUser, epicsFloat64 value)
{
    int function = pasynUser->reason;
    asynStatus status = asynSuccess;
    int computeCentroid, computeProfiles;
    static const char *functionName = "writeFloat64";
    status = setDoubleParam(function, value);
    if (function == NDPluginStatsCentroidThreshold) {
        getIntegerParam(NDPluginStatsComputeCentroid, &computeCentroid);
        if (computeCentroid && this->pArrays[0]) {
            doComputeCentroid(this->pArrays[0]);
            getIntegerParam(NDPluginStatsComputeProfiles, &computeProfiles);
            if (computeProfiles) doComputeProfiles(this->pArrays[0]);
        }
    } else {
        if (function < FIRST_NDPLUGIN_STATS_PARAM) status = NDPluginDriver::writeFloat64(pasynUser, value);
    }
    callParamCallbacks();
    if (status) 
        asynPrint(pasynUser, ASYN_TRACE_ERROR, 
              "%s:%s: error, status=%d function=%d, value=%f\n", 
              driverName, functionName, status, function, value);
    else        
        asynPrint(pasynUser, ASYN_TRACEIO_DRIVER, 
              "%s:%s: function=%d, value=%f\n", 
              driverName, functionName, function, value);
    return status;
}
asynStatus NDPluginStats :: writeFloat64 ( asynUser * pasynUser , epicsFloat64 value ) { int function = pasynUser -> reason ; asynStatus status = asynSuccess ; int computeCentroid , computeProfiles ; static const char * functionName = " " ; status = setDoubleParam ( function , value ) ; if ( function == NDPluginStatsCentroidThreshold ) { getIntegerParam ( NDPluginStatsComputeCentroid , & computeCentroid ) ; if ( computeCentroid && this -> pArrays [ 0 ] ) { doComputeCentroid ( this -> pArrays [ 0 ] ) ; getIntegerParam ( NDPluginStatsComputeProfiles , & computeProfiles ) ; if ( computeProfiles ) doComputeProfiles ( this -> pArrays [ 0 ] ) ; } } else { if ( function < FIRST_NDPLUGIN_STATS_PARAM ) status = NDPluginDriver :: writeFloat64 ( pasynUser , value ) ; } callParamCallbacks ( ) ; if ( status ) asynPrint ( pasynUser , ASYN_TRACE_ERROR , " \n " , driverName , functionName , status , function , value ) ; else asynPrint ( pasynUser , ASYN_TRACEIO_DRIVER , " \n " , driverName , functionName , function , value ) ; return status ; }
Called when asyn clients call pasynFloat64->write().
Called when asyn clients call pasynFloat64 - > write () .
/* Set the parameter and readback in the parameter library.  This may be overwritten when we read back the
     * status at the end, but that's OK */ /* If this parameter belongs to a base class call its method */ /* Do callbacks so higher layers see any changes */