fwConfigs
fwSmoothing.ctl File Reference

Functions

 fwSmoothing_setMany (dyn_string &dpes, dyn_int &smoothProcedure, dyn_float &deadband, dyn_float &timeInterval, dyn_string &exceptionInfo, bool runDriverCheck=FALSE, bool storeInParamHistory=TRUE)
 
 fwSmoothing_setMultiple (dyn_string dpes, int smoothProcedure, float deadband, float timeInterval, dyn_string &exceptionInfo, bool runDriverCheck=FALSE, bool storeInParamHistory=TRUE)
 
 fwSmoothing_set (string dpe, int smoothProcedure, float deadband, float timeInterval, dyn_string &exceptionInfo, bool runDriverCheck=FALSE, bool storeInParamHistory=TRUE)
 
 fwSmoothing_deleteMultiple (dyn_string dpes, dyn_string &exceptionInfo)
 
 fwSmoothing_deleteMany (dyn_string dpes, dyn_string &exceptionInfo)
 
 fwSmoothing_delete (string dpe, dyn_string &exceptionInfo)
 
 fwSmoothing_get (string dpe, bool &configExists, int &smoothProcedure, float &deadband, float &timeInterval, dyn_string &exceptionInfo)
 
 fwSmoothing_getManyWithCheck (dyn_string &dpes, dyn_bool &configExists, dyn_int &smoothProcedure, dyn_float &deadband, dyn_float &timeInterval, dyn_string &exceptionInfo)
 
 fwSmoothing_getMany (dyn_string &dpes, dyn_bool &configExists, dyn_int &smoothProcedure, dyn_float &deadband, dyn_float &timeInterval, dyn_string &exceptionInfo)
 
 _fwSmoothing_getParameters (dyn_string &dpes, bool isArchiveConfig, dyn_int &smoothProcedure, dyn_float &deadband, dyn_float &timeInterval, dyn_string &exceptionInfo)
 
 _fwSmoothing_setParameters (dyn_string dpes, bool isArchiveConfig, dyn_int smoothProcedure, dyn_float deadband, dyn_float timeInterval, dyn_string &exceptionInfo, bool storeInParamHistory=TRUE)
 

Detailed Description

This library contains function associated with the smoothing config. Functions are provided for getting the current settings, deleting the config and setting the config

Creation Date
19/06/2000
Modification History

22/11/2013 Marco Boccioli, Alexey Merezhin

19/09/2011 Marco Boccioli

05/09/2011 Marco Boccioli

31/08/2011 Marco Boccioli

12/08/2011 Marco Boccioli

26/01/2011 Marco Boccioli

21/01/2004 Oliver

15/01/2004 Oliver

15/09/2000 Oliver

Constraints
WARNING: the functions use the dpGet or dpSetWait, problems may occur when using these functions in a working function called by a PVSS (dpConnect) or in a calling function
Usage
Public
PVSS managers
VISION, CTRL
Author
Herve Milcent, Niko Karlsson, Oliver Holme (IT-CO)

Function Documentation

fwSmoothing_setMany ( dyn_string &  dpes,
dyn_int &  smoothProcedure,
dyn_float &  deadband,
dyn_float &  timeInterval,
dyn_string &  exceptionInfo,
bool  runDriverCheck = FALSE,
bool  storeInParamHistory = TRUE 
)
Adds or modifies the smoothing config on the given dpes
Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpeslist of data point elements. Passed as reference only for performance reasons. Not modified.
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time. Passed as reference only for performance reasons. Not modified.
deadbanddeadband value . Passed as reference only for performance reasons. Not modified.
timeIntervaltime in seconds. Passed as reference only for performance reasons. Not modified.
exceptionInfodetails of any errors are returned here
runDriverCheckOptional parameter (default value = FALSE) - TRUE to check if driver is running before setting config, else FALSE The necessary driver number must be running in order to successfully create config
storeInParamHistoryOptional parameter (default value = TRUE) - TRUE to archive the parameter change, else FALSE
fwSmoothing_setMultiple ( dyn_string  dpes,
int  smoothProcedure,
float  deadband,
float  timeInterval,
dyn_string &  exceptionInfo,
bool  runDriverCheck = FALSE,
bool  storeInParamHistory = TRUE 
)
Adds or modifies the smoothing config on the given dpes
Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpeslist of data point elements
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbanddeadband value
timeIntervaltime in seconds
exceptionInfodetails of any errors are returned here
runDriverCheckOptional parameter (default value = FALSE) - TRUE to check if driver is running before setting config, else FALSE The necessary driver number must be running in order to successfully create config
storeInParamHistoryOptional parameter (default value = TRUE) - TRUE to archive the parameter change, else FALSE
fwSmoothing_set ( string  dpe,
int  smoothProcedure,
float  deadband,
float  timeInterval,
dyn_string &  exceptionInfo,
bool  runDriverCheck = FALSE,
bool  storeInParamHistory = TRUE 
)
Adds or modifies the smoothing config on the given dpes
Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpedata point element
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbanddeadband value
timeIntervaltime in seconds
exceptionInfodetails of any errors are returned here
runDriverCheckOptional parameter (default value = FALSE) - TRUE to check if driver is running before setting config, else FALSE
storeInParamHistoryOptional parameter (default value = TRUE) - TRUE to archive the parameter change, else FALSE The necessary driver number must be running in order to successfully create config
fwSmoothing_deleteMultiple ( dyn_string  dpes,
dyn_string &  exceptionInfo 
)
Deletes the smoothing config for the given data point elements
Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpeslist of data point elements
exceptionInfodetails of any errors are returned here
fwSmoothing_deleteMany ( dyn_string  dpes,
dyn_string &  exceptionInfo 
)
Deletes the smoothing config for the given data point elements
Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpeslist of data point elements
exceptionInfodetails of any errors are returned here
fwSmoothing_delete ( string  dpe,
dyn_string &  exceptionInfo 
)
Deletes the smoothing config for the given data point element
Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpedata point element
exceptionInfodetails of any errors are returned here
fwSmoothing_get ( string  dpe,
bool &  configExists,
int &  smoothProcedure,
float &  deadband,
float &  timeInterval,
dyn_string &  exceptionInfo 
)
Gets the smoothing config from the given data point element.

The function checks that the relevant driver is running. If not it returns an exception saying the config could not be read.

Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpedata point element
configExistsTRUE if smoothing config exists, else FALSE
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbandDeadband value
timeIntervalTime interval in seconds
exceptionInfodetails of any errors are returned here
fwSmoothing_getManyWithCheck ( dyn_string &  dpes,
dyn_bool &  configExists,
dyn_int &  smoothProcedure,
dyn_float &  deadband,
dyn_float &  timeInterval,
dyn_string &  exceptionInfo 
)
Gets the smoothing config from the given data point element.

The function checks that the relevant driver is running. If not it returns an exception saying the config could not be read.

Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpesdata point elements. Passed as reference only for performance reasons. Not modified.
configExistsTRUE if smoothing config exists, else FALSE
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbandDeadband value
timeIntervalTime interval in seconds
exceptionInfodetails of any errors are returned here
fwSmoothing_getMany ( dyn_string &  dpes,
dyn_bool &  configExists,
dyn_int &  smoothProcedure,
dyn_float &  deadband,
dyn_float &  timeInterval,
dyn_string &  exceptionInfo 
)
Gets the smoothing config from the given data point element.

The function checks that the relevant driver is running. If not it returns an exception saying the config could not be read.

Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpesdata point elements. Passed as reference only for performance reasons. Not modified.
configExistsTRUE if smoothing config exists, else FALSE
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbandDeadband value
timeIntervalTime interval in seconds
exceptionInfodetails of any errors are returned here
_fwSmoothing_getParameters ( dyn_string &  dpes,
bool  isArchiveConfig,
dyn_int &  smoothProcedure,
dyn_float &  deadband,
dyn_float &  timeInterval,
dyn_string &  exceptionInfo 
)
Gets the parameters of the smoothing in the archiving or smoothing config of a given dpe.

NOTE: This function does not check if the smoothing config exists nor if the archive config has smoothing configured (this must be done before using this function)

Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpesdata point element
isArchiveConfigTRUE to read archive config smoothing parameters FALSE to read smoothing config smoothing parameters
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbanddeadband value returned here
timeIntervaltime in seconds returned here
exceptionInfodetails of any errors are returned here
_fwSmoothing_setParameters ( dyn_string  dpes,
bool  isArchiveConfig,
dyn_int  smoothProcedure,
dyn_float  deadband,
dyn_float  timeInterval,
dyn_string &  exceptionInfo,
bool  storeInParamHistory = TRUE 
)
Sets the parameters of the smoothing in the archiving or smoothing config of a given dpe.

NOTE: This function does not create the smoothing config nor set up smoothing for the archiving config (this must be done before using this function)

Constraints
None
Usage
Public
PVSS managers
VISION, CTRL
Parameters
dpeslist of data point elements
isArchiveConfigTRUE to read archive config smoothing parameters FALSE to read smoothing config smoothing parameters
smoothProcedureDPATTR_VALUE_SMOOTH : value dependent, DPATTR_VALUE_REL_SMOOTH : relative value dependent, DPATTR_TIME_SMOOTH : time dependent, DPATTR_TIME_AND_VALUE_SMOOTH : value AND time dependent, DPATTR_TIME_AND_VALUE_REL_SMOOTH : relative value AND time dependent, DPATTR_TIME_OR_VALUE_SMOOTH : value OR time dependent, DPATTR_TIME_OR_VALUE_REL_SMOOTH : relative value OR time dependent, DPATTR_COMPARE_OLD_NEW : old-new comparison, DPATTR_OLD_NEW_AND_TIME_SMOOTH : old-new comparison AND time, DPATTR_OLD_NEW_OR_TIME_SMOOTH : old-new comparison OR time
deadbanddeadband value
timeIntervaltime in seconds
exceptionInfodetails of any errors are returned here
storeInParamHistoryOptional parameter (default value = TRUE) - TRUE to archive the parameter change, else FALSE