fwConfigs
|
Files | |
file | fwAlertConfig.ctl |
Alarm Settings object indexes | |
Used to access directly the alert settings object (object of type dyn_mixed). For advanced use. | |
const int | fwAlertConfig_ALERT_LIMIT_TEXT = 1 |
const int | fwAlertConfig_ALERT_LIMIT_VALUE = 2 |
const int | fwAlertConfig_ALERT_LIMIT_VALUE_INCLUDED = 3 |
const int | fwAlertConfig_ALERT_LIMIT_CLASS = 4 |
const int | fwAlertConfig_ALERT_LIMIT_VALUE_MATCH = 5 |
const int | fwAlertConfig_ALERT_LIMIT_NEGATION = 8 |
const int | fwAlertConfig_ALERT_LIMIT_STATE_BITS = 9 |
const int | fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS = 10 |
const int | fwAlertConfig_ALERT_LIMIT_TEXT_WENT = 11 |
const int | fwAlertConfig_ALERT_PARAM_TYPE = 1 |
const int | fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST = 2 |
const int | fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY = 3 |
const int | fwAlertConfig_ALERT_PARAM_SUM_THRESHOLD = 4 |
const int | fwAlertConfig_ALERT_PARAM_PANEL = 5 |
const int | fwAlertConfig_ALERT_PARAM_IMPULSE = 9 |
const int | fwAlertConfig_ALERT_PARAM_RANGES = 13 |
const int | fwAlertConfig_ALERT_PARAM_ACTIVE = 14 |
const int | fwAlertConfig_ALERT_PARAM = 1 |
const int | fwAlertConfig_ALERT_LIMIT = 2 |
const int | fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS = 6 |
const int | fwAlertConfig_ALERT_PARAM_HELP = 7 |
const int | fwAlertConfig_ALERT_PARAM_DISCRETE = 8 |
const int | fwAlertConfig_ALERT_PARAM_MODIFY_ONLY = 10 |
const int | fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET = 11 |
const int | fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY = 12 |
Utility functions | |
Used to access the configuration object attributes (object of type dyn_mixed). | |
fwAlertConfig_objectInitialize (dyn_mixed ¶msObject, int totalRanges) | |
bool | fwAlertConfig_objectConfigExists (dyn_mixed alertConfigObject, int &configType, dyn_string &exceptionInfo) |
fwAlertConfig_objectCreateAnalog (dyn_mixed &alertConfigObject, dyn_string alertTexts, dyn_float alertLimits, dyn_string alertClasses, string alertPanel, dyn_string alertPanelParameters, string alertHelp, dyn_bool limitsIncluded, dyn_string &exceptionInfo, bool modifyOnly=FALSE, bool fallBackToSet=FALSE, string addDpeInSummary="", bool storeInParamHistory=TRUE) | |
fwAlertConfig_objectCreateDigital (dyn_mixed &alertConfigObject, dyn_string alertTexts, dyn_string alertClasses, string alertPanel, dyn_string alertPanelParameters, string alertHelp, dyn_string &exceptionInfo, bool modifyOnly=FALSE, bool fallBackToSet=FALSE, string addDpeInSummary="", bool storeInParamHistory=TRUE) | |
fwAlertConfig_objectCreateDiscrete (dyn_mixed &alertConfigObject, dyn_string alertTexts, dyn_string alertMatch, dyn_string alertClasses, string alertPanel, dyn_string alertPanelParameters, string alertHelp, bool impulse, dyn_bool discreteNegation, string stateBits, dyn_string stateMatch, dyn_string &exceptionInfo, bool modifyOnly=FALSE, bool fallBackToSet=FALSE, string addDpeInSummary="", bool storeInParamHistory=TRUE) | |
fwAlertConfig_objectCreateSummary (dyn_mixed &alertConfigObject, dyn_string alertTexts, int threshold, dyn_string alertClasses, dyn_string summaryDpeList, string alertPanel, dyn_string alertPanelParameters, string alertHelp, dyn_string &exceptionInfo, bool modifyOnly=FALSE, bool fallBackToSet=FALSE, string addDpeInSummary="", bool storeInParamHistory=TRUE) | |
fwAlertConfig_objectExtractAnalog (dyn_mixed alertConfigObject, int &alertType, dyn_string &alertTexts, dyn_float &alertLimits, dyn_string &alertClasses, string &alertPanel, dyn_string &alertPanelParameters, string &alertHelp, dyn_bool &limitsIncluded, bool &isActive, dyn_string &exceptionInfo) | |
fwAlertConfig_objectExtractType (dyn_mixed alertConfigObject, int &alertType, bool &isActive, dyn_string &exceptionInfo) | |
fwAlertConfig_objectExtractDiscrete (dyn_mixed alertConfigObject, int &alertType, dyn_string &alertTexts, dyn_string &alertMatches, dyn_string &alertClasses, string &alertPanel, dyn_string &alertPanelParameters, string &alertHelp, bool &isDiscrete, bool &impulse, dyn_bool &discreteNegation, string &stateBits, dyn_string &stateMatch, bool &isActive, dyn_string &exceptionInfo) | |
fwAlertConfig_objectExtractDigital (dyn_mixed alertConfigObject, int &alertType, dyn_string &alertTexts, dyn_string &alertClasses, string &alertPanel, dyn_string &alertPanelParameters, string &alertHelp, bool &isActive, dyn_string &exceptionInfo) | |
fwAlertConfig_objectExtractSummary (dyn_mixed alertConfigObject, int &alertType, dyn_string &alertTexts, dyn_string &summaryDpeList, int &threshold, string &alertClass, string &alertPanel, dyn_string &alertPanelParameters, string &alertHelp, bool &isActive, dyn_string &exceptionInfo) | |
Set/Get functions | |
Used to set/get the alarm settings to/from the dpe. The settings are stored into the settings object. | |
fwAlertConfig_objectSet (string dpe, dyn_mixed alertConfigObject, dyn_string &exceptionInfo) | |
fwAlertConfig_objectGet (string dpe, dyn_mixed &alertConfigObject, dyn_string &exceptionInfo) | |
fwAlertConfig_objectGetMany (dyn_string &dpes, dyn_dyn_mixed &alertConfigObjects, dyn_string &exceptionInfo) | |
fwAlertConfig_delete (string dpe, dyn_string &exceptionInfo, string removeDpeInSummary="", bool storeInParamHistory=TRUE) | |
fwAlertConfig_objectSetMany (dyn_string &dpes, dyn_dyn_mixed &alertConfigObjects, dyn_string &exceptionInfo) | |
fwAlertConfig_deleteMultiple (dyn_string dpes, dyn_string &exceptionInfo, string removeDpeInSummary="", bool storeInParamHistory=TRUE) | |
fwAlertConfig_deleteMany (dyn_string dpes, dyn_string &exceptionInfo, string removeDpeInSummary="", bool storeInParamHistory=TRUE) | |
Activation functions | |
fwAlertConfig_acknowledge (string dpe, dyn_string &exceptionInfo, bool checkIfExists=TRUE, bool storeInParamHistory=FALSE) | |
fwAlertConfig_acknowledgeMany (dyn_string dpes, dyn_string &exceptionInfo, bool checkIfExists=TRUE, bool storeInParamHistory=FALSE) | |
fwAlertConfig_activate (string dpe, dyn_string &exceptionInfo, bool checkIfExists=TRUE, bool storeInParamHistory=FALSE) | |
fwAlertConfig_activateMultiple (dyn_string dpes, dyn_string &exceptionInfo, bool checkIfExists=TRUE, bool storeInParamHistory=FALSE) | |
fwAlertConfig_deactivate (string dpe, dyn_string &exceptionInfo, bool acknowledge=TRUE, bool checkIfExists=TRUE, bool storeInParamHistory=FALSE) | |
fwAlertConfig_deactivateMultiple (dyn_string dpes, dyn_string &exceptionInfo, bool acknowledge=TRUE, bool checkIfExists=TRUE, bool storeInParamHistory=FALSE) |
The fwAlertConfigs library allows configuring alerts of type analog, discrete, boolean, summary.
The fwAlertConfigs library makes use of a configuration object. In order to configure a dpe with an alarm, the configuration setting object must be previously initialized with the alarm parameterization (using utility functions or directly accessing the object through the index constants). Such object is then passed to the set function that will make the necessary dpSet.
An analog alarm can be set in the following way: one should declare a configuration object of type dyn_anytype, then fill it with the alarm settings using the utility function fwAlertConfig_objectCreateAnalog(), then set the setting to the dpe using the function fwAlertConfig_objectSet().
Example: create an analog alert object (3 ranges) using the utility functions and set it to the dpe
dyn_mixed alarmObject; dyn_string exc; //create the alarm object fwAlertConfig_objectCreateAnalog( alarmObject, //the object that will contain the alarm settings makeDynString("too cold","normal","too hot"), //the text for the 3 ranges makeDynFloat(0,22,33), //the 3 ranges are separated by the values 22 and 33. The 1st value must always be 0. makeDynString("_fwWarningAck.","","_fwErrorAck."), //classes "", //alarm panel, if necessary makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed makeDynBool(0,1,0), //value included (1 means ">=", 0 means ">", 1st element ignored). Here: <= 22: too cold; 23..32: normal; >= 33: too hot exc); //exception info returned here //set the alarm to the dpe fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate it fwAlertConfig_activate("testSingleAlarm_01.val", exc);
For more examples, see the documentation for the function fwAlertConfig_objectSet().
A digital (bool) alarm can be set in the following way: one should declare a configuration object of type dyn_anytype, then fill it with the alarm settings using the utility function fwAlertConfig_objectCreateDigital(), then set the setting to the dpe using the function fwAlertConfig_objectSet().
Example: create a digital alert object (ok when true, alarm when false) using the utility functions and set it to the dpe
dyn_mixed alarmObject; dyn_string exc; //initialize the alarm object with 2 ranges: fwAlertConfig_objectCreateDigital( alarmObject, makeDynString("ok","hot"), makeDynString("","_fwWarningAck."), "panel.pnl", //panel name - optional makeDynString("datapointForPanel1.value","datapointForPanel2.value"),//panel $params - optional "This is a help text", //help text - optional exc); //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.trip", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.trip", exc);
Example: create a digital alert object (ok when true, alarm when false)
dyn_mixed alarmObject; dyn_string exc; //initialize the alarm object with 2 ranges: fwAlertConfig_objectCreateDigital( alarmObject, makeDynString("cool","ok"), makeDynString("_fwWarningAck","."), "panel.pnl", //panel name - optional makeDynString("datapointForPanel1.value","datapointForPanel2.value"),//;panel $params - optional "This is a help text", //help text - optional exc); //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.trip", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.trip", exc);
An alarm can be also set accessing the parametrization object directly. This can be useful in case a user needs to use advanced features not available in the utility functions. One can declare a configuration object of type dyn_anytype, then fill it with the alarm settings accessing the items through the object indexes, then set the setting to the dpe using the function fwAlertConfig_objectSet().
Example: create a digital alert object (ok when false, alarm when true)
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the alarm object with 2 ranges: fwAlertConfig_objectInitialize(alarmObject,2); //extract the limits parameters from the alarm object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: //text for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "error"; //class for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; //store the limits parameters back to the object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the alarm object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_BINARYSIGNAL; //store the general parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.trip", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.trip", exc);
A discrete alarm can be set to types float, int and bit32. One should declare a configuration object of type dyn_anytype, then fill it with the alarm settings using the utility function fwAlertConfig_objectCreateDiscrete(), then set the setting to the dpe using the function fwAlertConfig_objectSet().
Example: create a discrete alert object (3 ranges) using the utility functions and set it to the dpe
dyn_mixed alarmObject; dyn_string exc; //create the alarm object fwAlertConfig_objectCreateDiscrete( alarmObject, //the object that will contain the alarm settings makeDynString("ok","not valid","error"), //the text for the 3 ranges makeDynString("*","22,23","24-27"), //the 3 ranges must match these values (the 1st must be always the good one - *) makeDynString("","_fwWarningAck.","_fwErrorAck."), //classes (the 1st one must always be the good one) "", //alarm panel, if necessary makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed false, //impulse alarm makeDynBool(0,0,0), //negation of the matching (0 means "=", 1 means "!=") "", //state bits that must also match for the alarm makeDynString("","",""), //state bits that must match for each range exc ); //exception info returned here //set the alarm to the dpe fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate it fwAlertConfig_activate("testSingleAlarm_01.val", exc);
For more examples, see the documentation for the function fwAlertConfig_objectSet().
An alarm can be also set accessing the parametrization object directly: one can declare a configuration object of type dyn_anytype, then fill it with the alarm settings accessing the items through the object indexes, then set the setting to the dpe using the function fwAlertConfig_objectSet().
Example: create a discrete alert object with 3 ranges and the basic parameters
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the alarm object with 3 ranges: fwAlertConfig_objectInitialize(alarmObject,3); //extract the limits parameters of the alarm object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: //text for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "system ok"; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "no connection"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "system fault"; //value to be matched for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "*"; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "22, 23, 24"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "29-33"; //if value to be matched for each range of the alarm must be negated (this is an option) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_NEGATION] = false; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_NEGATION] = true; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_NEGATION] = false; //class for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //pattern match of state bits (this is an option) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_STATE_BITS] = "11000000000000000000000001010101XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; //only the 1st element is considered. All the others are ignored; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_STATE_BITS] = ""; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_STATE_BITS] = ""; //pattern match of state bits for each range (this is an option) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS] = ""; //1st element must always have this value; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS] = "0010xxxxxxxxx0101011000000001000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS] = "001x00xxxxxxx010xx11011110000000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; //store the limits parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the alarm object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: //the alarm is a non-binary one alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; //the alarm is discrete alarmParams[fwAlertConfig_ALERT_PARAM_DISCRETE][1] = true; //store the general parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.val", exc);
For more examples, see the documentation for the function fwAlertConfig_objectSet().
An alarm can be also set accessing the parametrization object directly: one can declare a configuration object of type dyn_anytype, then fill it with the alarm settings accessing the items through the object indexes, then set the setting to the dpe using the function fwAlertConfig_objectSet().
Example: create a summary alert object
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //create the params object: fwAlertConfig_objectCreateSummary( alarmObject, makeDynString("cool","hot"), 2, makeDynString("",""), makeDynString("testSingleAlarm_0001.val","testSingleAlarm_0003.val","testSingleAlarm_0004.val","testSingleAlarm_0005.val"), "panel.pnl", //panel name - optional makeDynString("datapointForPanel1.value","datapointForPanel2.value"),//;panel $params - optional "This is a help text", //help text - optional exc); //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.string", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.string", exc);
For more examples, see the documentation for the function fwAlertConfig_objectSet().
Alarms can be set in batch in the following way: one should declare a configuration object of type dyn_mixed (alarmObject). This object will be contained in an array of object (one object per dpe), of type dyn_mixed (call it alarmObjects). Each alarmObject then must be filled with the function fwAlertConfig_objectCreateAnalog(), and stored into the array of objects alarmObjects. The array of objects is then passed together with the array of dpes to the function fwAlertConfig_objectSetMany().
Example: create analog alert objects with 3 ranges and the basic parameters and set them to dpes
dyn_mixed alarmObject; dyn_mixed alarmObjects; dyn_string exc, dpe; //list of datapoint elements dpe = makeDynString("dpe1.val","dpe2.val"); // alarm 1 //set the alarm object fwAlertConfig_objectCreateAnalog( alarmObject, //the object that will contain the alarm settings makeDynString("too cold","normal","too hot"), //the text for the 3 ranges makeDynFloat(0,22,33), //the 3 ranges are separated by the values 22 and 33. The 1st value must always be 0. makeDynString("_fwWarningAck.","","_fwErrorAck."), //classes makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed makeDynBool(0,1,0), //value included (1 means ">=", 0 means ">", 1st element ignored). Here: <= 22: too cold; 23..32: normal; >= 33: too hot exc); //exception info returned here // store the config 1 in the array of objects alarmObjects[1] = alarmObject; // alarm 2 dynClear(alarmObject); //set the alarm object fwAlertConfig_objectCreateAnalog( alarmObject, //the object that will contain the alarm settings makeDynString("too cold","normal","too hot"), //the text for the 3 ranges makeDynFloat(0,44,56), //the 3 ranges makeDynString("_fwWarningAck.","","_fwErrorAck."), //classes makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed makeDynBool(0,0,0), //value included exc); //exception info returned here // store the config 2 in the array of objects alarmObjects[2] = alarmObject; //set the 2 alarms to the 2 dpes: fwAlertConfig_objectSetMany(dpe,alarmObjects, exc); //activate the alerts fwAlertConfig_activateMultiple(dpe, exc);
It is also possible to set many dpes with the same alarm settings. In this case, the array of settings objects must contain one only object, at the index 1. Example: set the same alarm into 2 dpes:
dyn_mixed alarmObject; dyn_mixed alarmObjects; dyn_string exc, dpe; //list of datapoint elements dpe = makeDynString("dpe1.val","dpe2.val"); // alarm used for all the dpes //set the alarm object fwAlertConfig_objectCreateAnalog( alarmObject, //the object that will contain the alarm settings makeDynString("too cold","normal","too hot"), //the text for the 3 ranges makeDynFloat(0,22,33), //the 3 ranges are separated by the values 22 and 33. The 1st value must always be 0. makeDynString("_fwWarningAck.","","_fwErrorAck."), //classes makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed makeDynBool(0,1,0), //value included (1 means ">=", 0 means ">", 1st element ignored). Here: <= 22: too cold; 23..32: normal; >= 33: too hot exc); //exception info returned here // store the config in the array of objects alarmObjects[1] = alarmObject; //set the same alarm to the 2 dpes: fwAlertConfig_objectSetMany(dpe,alarmObjects, exc); //activate the alerts fwAlertConfig_activateMultiple(dpe, exc);
For more examples, see the documentation for the function fwAlertConfig_objectSetMany().
Alarm settings can be retrieved from a dpe in the following way: one should declare a configuration object of type dyn_mixed, then fill it with the alarm settings from the dpe using the function fwAlertConfig_objectGet(), then, in the case of an analog alert, extract the settings from the configuration object using the function fwAlertConfig_objectExtractAnalog().
Example: get an analog alarm from a dpe
dyn_mixed alarmConfigObject; dyn_string exc; int alertType; dyn_string alertTexts; dyn_float alertLimits; dyn_string alertClasses; string alertPanel; dyn_string alertPanelParameters; string alertHelp; dyn_bool limitsIncluded; bool isActive; //get the alarm and store it in the configuration object fwAlertConfig_objectGet("testSingleAlarm_01.val",alarmConfigObject, exc); //verfy that the alarm is analog fwAlertConfig_objectExtractType(alarmConfigObject, alertType, isActive, exc); //extract the parameters if(alertType==DPCONFIG_ALERT_NONBINARYSIGNAL) fwAlertConfig_objectExtractAnalog( alarmConfigObject, alertType, alertTexts, alertLimits, alertClasses, alertPanel, alertPanelParameters, alertHelp, limitsIncluded, isActive, exc);
Alarms can be retrieved in batch. This is much more performing than looping into the dpes with the function fwAlertConfig_objectGet(). The configuration objects will be contained in an array of object (one object per dpe), of type dyn_mixed (call it alertObjects). The array of objects alertObjects then must be filled with the function fwDpFunction_objectGetMany(). The array is the accessed in a loop, getting each element. The parameters can be then accessed using fwAlertConfig_objectExtractAnalog().
Example: get alarms from two dpes:
dyn_string exc; dyn_string dpe; dyn_mixed alertObjects; int i; dyn_string exc; int alertType; dyn_string alertTexts; dyn_float alertLimits; dyn_string alertClasses; string alertPanel; dyn_string alertPanelParameters; string alertHelp; dyn_bool limitsIncluded; bool isActive; //list of dpes makeDynString("sys1:dpe1.val","sys1:dpe2.val"); fwAlertConfig_objectGetMany(dpe, alertObjects, exc); for(i=1 ; i<=dynlen(dpe) ; i++) { //verfy that the alarm is analog fwAlertConfig_objectExtractType(alarmConfigObject, alertType, isActive, exc); //extract the parameters if(alertType==DPCONFIG_ALERT_NONBINARYSIGNAL) fwAlertConfig_objectExtractAnalog( alarmConfigObject, alertType, alertTexts, alertLimits, alertClasses, alertPanel, alertPanelParameters, alertHelp, limitsIncluded, isActive, exc); }
fwAlertConfig_acknowledge | ( | string | dpe, |
dyn_string & | exceptionInfo, | ||
bool | checkIfExists = TRUE , |
||
bool | storeInParamHistory = FALSE |
||
) |
Acknowledges the alert handling on the given data point element. This function uses the DPATTR_ACKTYPE_SINGLE to acknowledge the alert.
dpe | Data point element to act on |
exceptionInfo | Details of any exceptions are returned here |
checkIfExists | Optional parameter (Default value - TRUE) TRUE - check if alert config exists (avoids errors if it doesn't) FALSE - do not check if alert exists (may cause errors if it does not exist) |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_acknowledgeMany().
fwAlertConfig_acknowledgeMany | ( | dyn_string | dpes, |
dyn_string & | exceptionInfo, | ||
bool | checkIfExists = TRUE , |
||
bool | storeInParamHistory = FALSE |
||
) |
Acknowledges the alert handling on the given data point elements. If more than one dpe is specified, the DPATTR_ACKTYPE_MULTIPLE value is used to acknowledge, indicating that the alerts were acknowledged as part of a group acknowledge action. Otherwise the DPATTR_ACKTYPE_SINGLE value is written.
dpes | the list of data point elements to act on |
exceptionInfo | Details of any exceptions are returned here |
checkIfExists | Optional parameter (Default value - TRUE) TRUE - only acknowledge alerts which exist (avoids errors if it doesn't) FALSE - do not check if alert exists (cause exceptions to be raised if they do not exist) |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References _fwConfigs_getConfigTypeAttribute(), and _fwConfigs_setConfigTypeAttribute().
Referenced by fwAlertConfig_acknowledge().
fwAlertConfig_activate | ( | string | dpe, |
dyn_string & | exceptionInfo, | ||
bool | checkIfExists = TRUE , |
||
bool | storeInParamHistory = FALSE |
||
) |
Activates the alert handling on the given data point element.
dpe | Data point element to act on |
exceptionInfo | Details of any exceptions are returned here |
checkIfExists | Optional parameter (Default value - TRUE) TRUE - check if alert config exists (avoids errors if it doesn't) FALSE - do not check if alert exists (may cause errors if it does not exist) |
storeInParamHistory | Optional parameter (Default value - FALSE) TRUE - writing to active bit is stored in alert history FALSE - writing to active bit is not stored in alert history |
References _fwAlertConfig_activateOrDeactivate().
Referenced by fwAlertConfig_setLimits().
fwAlertConfig_activateMultiple | ( | dyn_string | dpes, |
dyn_string & | exceptionInfo, | ||
bool | checkIfExists = TRUE , |
||
bool | storeInParamHistory = FALSE |
||
) |
Activates the alert handling on the given list of data point elements.
dpes | The list of data point elements to act on |
exceptionInfo | Details of any exceptions are returned here |
checkIfExists | Optional parameter (Default value - TRUE) TRUE - check if alert config exists (avoids errors if it doesn't) FALSE - do not check if alert exists (may cause errors if it does not exist) |
storeInParamHistory | Optional parameter (Default value - FALSE) TRUE - writing to active bit is stored in alert history FALSE - writing to active bit is not stored in alert history |
References _fwAlertConfig_activateOrDeactivate().
Referenced by fwAlertConfig_objectSetMany().
fwAlertConfig_deactivate | ( | string | dpe, |
dyn_string & | exceptionInfo, | ||
bool | acknowledge = TRUE , |
||
bool | checkIfExists = TRUE , |
||
bool | storeInParamHistory = FALSE |
||
) |
Deactivates the alert handling on the given data point element.
dpe | Data point element to act on |
exceptionInfo | Details of any exceptions are returned here |
acknowledge | Optional parameter (Default value - TRUE) TRUE for acknowledge alert when deactivating FALSE to leave alert unacknowledge when deactivated |
checkIfExists | Optional parameter (Default value - TRUE) TRUE - check if alert config exists (avoids errors if it doesn't) FALSE - do not check if alert exists (may cause errors if it does not exist) |
storeInParamHistory | Optional parameter (Default value - FALSE) TRUE - writing to active bit is stored in alert history FALSE - writing to active bit is not stored in alert history |
References _fwAlertConfig_activateOrDeactivate().
Referenced by fwAlertConfig_setLimits().
fwAlertConfig_deactivateMultiple | ( | dyn_string | dpes, |
dyn_string & | exceptionInfo, | ||
bool | acknowledge = TRUE , |
||
bool | checkIfExists = TRUE , |
||
bool | storeInParamHistory = FALSE |
||
) |
Deactivates the alert handling on the given list of data point elements.
dpes | List of data point elements to act on |
exceptionInfo | Details of any exceptions are returned here |
acknowledge | Optional parameter (Default value - TRUE) TRUE for acknowledge alert when deactivating FALSE to leave alert unacknowledge when deactivated |
checkIfExists | Optional parameter (Default value - TRUE) TRUE - check if alert config exists (avoids errors if it doesn't) FALSE - do not check if alert exists (may cause errors if it does not exist) |
storeInParamHistory | Optional parameter (Default value - FALSE) TRUE - writing to active bit is stored in alert history FALSE - writing to active bit is not stored in alert history |
References _fwAlertConfig_activateOrDeactivate().
Referenced by fwAlertConfig_deleteMultiple(), and fwAlertConfig_objectSetMany().
fwAlertConfig_delete | ( | string | dpe, |
dyn_string & | exceptionInfo, | ||
string | removeDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Deletes the alert config for the given data point element
dpe | data point element |
exceptionInfo | details of any errors are returned here |
removeDpeInSummary | OPTIONAL PARAMETER - default value = "" (no aciton) You can specify the dpe which has a summary alert from which you want to remove the reference to the dpe to delete |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_deleteMultiple().
fwAlertConfig_deleteMany | ( | dyn_string | dpes, |
dyn_string & | exceptionInfo, | ||
string | removeDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Deletes the alert config for the given data point elements
dpes | list of data point elements |
exceptionInfo | details of any errors are returned here |
removeDpeInSummary | OPTIONAL PARAMETER - default value = "" (no aciton) You can specify the dpe which has a summary alert from which you want to remove the reference to the dpe to delete |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_deleteMultiple().
fwAlertConfig_deleteMultiple | ( | dyn_string | dpes, |
dyn_string & | exceptionInfo, | ||
string | removeDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Deletes the alert config for the given data point elements
dpes | list of data point elements |
exceptionInfo | details of any errors are returned here |
removeDpeInSummary | OPTIONAL PARAMETER - default value = "" (no aciton) You can specify the dpe which has a summary alert from which you want to remove the reference to the dpe to delete |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References _fwConfigs_delete(), _fwConfigs_getConfigTypeAttribute(), fwAlertConfig_deactivateMultiple(), and fwAlertConfig_deleteDpFromAlertSummary().
Referenced by fwAlertConfig_delete(), and fwAlertConfig_deleteMany().
bool fwAlertConfig_objectConfigExists | ( | dyn_mixed | alertConfigObject, |
int & | configType, | ||
dyn_string & | exceptionInfo | ||
) |
Check if the paramaters object contains a configuration
alertConfigObject | Object containing the alarm config parameters |
configType | Returns the type of the current alert config in the object |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_PARAM, and fwAlertConfig_ALERT_PARAM_TYPE.
Referenced by fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), and fwAlertConfig_objectExtractType().
fwAlertConfig_objectCreateAnalog | ( | dyn_mixed & | alertConfigObject, |
dyn_string | alertTexts, | ||
dyn_float | alertLimits, | ||
dyn_string | alertClasses, | ||
string | alertPanel, | ||
dyn_string | alertPanelParameters, | ||
string | alertHelp, | ||
dyn_bool | limitsIncluded, | ||
dyn_string & | exceptionInfo, | ||
bool | modifyOnly = FALSE , |
||
bool | fallBackToSet = FALSE , |
||
string | addDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Creates a paramaters object for analog alarm.
dyn_mixed alarmObject; dyn_string exc; //create the alarm object fwAlertConfig_objectCreateAnalog( alarmObject, //the object that will contain the alarm settings makeDynString("too cold","normal","too hot"), //the text for the 3 ranges makeDynFloat(0,22,33), //the 3 ranges are separated by the values 22 and 33. The 1st value must always be 0. makeDynString("_fwWarningAck.","","_fwErrorAck."), //classes "", //alarm panel, if necessary makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed makeDynBool(0,1,0), //value included (1 means ">=", 0 means ">", 1st element ignored). Here: <= 22: too cold; 23..32: normal; >= 33: too hot exc); //exception info returned here //set the alarm to the dpe fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate it fwAlertConfig_activate("testSingleAlarm_01.val", exc);
alertConfigObject | Reference to the object to create |
alertTexts | Alert texts for each range eg. makeDynString( "Bad Text", "OK", "Bad Text") |
alertLimits | The limits of each range given here eg. makeDynFloat( 20, 60 ); |
alertClasses | Alert classes for each range eg. makeDynString( "_fwErrorAck.", "" , "_fwErrorAck.") One of the items of the dyn_string must always be empty to indicate the valid state. The valid ranges becomes the state with no alert class given (the second in this case). Don't forget to add the dot to the alert class names. |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to panel given in Alert Panel |
alertHelp | Help text or path to help file |
limitsIncluded | TRUE to include the limit (<=), FALSE else (<) |
exceptionInfo | Details of any exceptions are returned here |
modifyOnly | Optional parameter - Default value FALSE. Set to TRUE to modify alert without setting "type" attributes. This is much quicker, but the alert config must already exist, be an analog alert and have the same number of ranges as you want. |
fallBackToSet | Optional parameter - Default value FALSE. Used in combination with modifyOnly. If modifyOnly = TRUE and fallBackToSet = FALSE, then if the alert config is not compatible an exception is raised. If modifyOnly = TRUE and fallBackToSet = TRUE, then if the alert config is not compatible, modifyOnly is treated as if it was FALSE. |
addDpeInSummary | Optional parameter - Default value "". Used to add the new alert in a summary alert. Default value "" means do not add the new alert into a summary. You can specify either an absolute DPE name, or a relative path from the DP to which the new alert was saved. i.e. addDpeInSummary = "." will add the new alert on dpes[i] to the summary on the root of the datapoint to which dpes[i] belongs. addDpeInSummary = "MyDp.summaries" will add the new alert on dpes[i] to the summary on the dpe called "MyDp.summaries". Note: The summary alarms must already exist. If they does not exist, it WILL NOT be created. |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_LIMIT_VALUE, fwAlertConfig_ALERT_LIMIT_VALUE_INCLUDED, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY, fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_MODIFY_ONLY, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY, fwAlertConfig_ALERT_PARAM_TYPE, fwAlertConfig_objectConfigExists(), and fwAlertConfig_objectInitialize().
fwAlertConfig_objectCreateDigital | ( | dyn_mixed & | alertConfigObject, |
dyn_string | alertTexts, | ||
dyn_string | alertClasses, | ||
string | alertPanel, | ||
dyn_string | alertPanelParameters, | ||
string | alertHelp, | ||
dyn_string & | exceptionInfo, | ||
bool | modifyOnly = FALSE , |
||
bool | fallBackToSet = FALSE , |
||
string | addDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Creates a paramaters object for digital alarm. The object is set to the alarm using fwAlertConfig_objectSet
dyn_mixed alarmObject; dyn_string exc; //initialize the alarm object with 2 ranges: fwAlertConfig_objectCreateDigital( alarmObject, makeDynString("ok","hot"), makeDynString("","_fwWarningAck."), "panel.pnl", //panel name - optional makeDynString("datapointForPanel1.value","datapointForPanel2.value"),//panel $params - optional "This is a help text", //help text - optional exc); //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.trip", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.trip", exc);
alertConfigObject | Reference to the object to create |
alertTexts | Alert texts for each range eg. makeDynString( "Bad Text", "OK", "Bad Text") |
alertClasses | Alert classes for each range eg. makeDynString( "" , "_fwErrorAck.") One of the items of the dyn_string must always be empty to indicate the valid state. eg. makeDynString( "" , "_fwErrorAck.") for FALSE to be good state, makeDynString( "_fwErrorAck." , "") for TRUE to be good state. Don't forget to add the dot to the alert class names. |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to panel given in Alert Panel |
alertHelp | Help text or path to help file |
exceptionInfo | Details of any exceptions are returned here |
modifyOnly | Optional parameter - Default value FALSE. Set to TRUE to modify alert without setting "type" attributes. This is much quicker, but the alert config must already exist, be an analog alert and have the same number of ranges as you want. |
fallBackToSet | Optional parameter - Default value FALSE. Used in combination with modifyOnly. If modifyOnly = TRUE and fallBackToSet = FALSE, then if the alert config is not compatible an exception is raised. If modifyOnly = TRUE and fallBackToSet = TRUE, then if the alert config is not compatible, modifyOnly is treated as if it was FALSE. |
addDpeInSummary | Optional parameter - Default value "". Used to add the new alert in a summary alert. Default value "" means do not add the new alert into a summary. You can specify either an absolute DPE name, or a relative path from the DP to which the new alert was saved. i.e. addDpeInSummary = "." will add the new alert on dpes[i] to the summary on the root of the datapoint to which dpes[i] belongs. addDpeInSummary = "MyDp.summaries" will add the new alert on dpes[i] to the summary on the dpe called "MyDp.summaries". Note: The summary alarms must already exist. If they does not exist, it WILL NOT be created. |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY, fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_MODIFY_ONLY, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY, fwAlertConfig_ALERT_PARAM_TYPE, fwAlertConfig_objectConfigExists(), and fwAlertConfig_objectInitialize().
fwAlertConfig_objectCreateDiscrete | ( | dyn_mixed & | alertConfigObject, |
dyn_string | alertTexts, | ||
dyn_string | alertMatch, | ||
dyn_string | alertClasses, | ||
string | alertPanel, | ||
dyn_string | alertPanelParameters, | ||
string | alertHelp, | ||
bool | impulse, | ||
dyn_bool | discreteNegation, | ||
string | stateBits, | ||
dyn_string | stateMatch, | ||
dyn_string & | exceptionInfo, | ||
bool | modifyOnly = FALSE , |
||
bool | fallBackToSet = FALSE , |
||
string | addDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Creates a paramaters object for digital discrete or analog discrete alarm. The object is set to the alarm using fwAlertConfig_objectSet
dyn_mixed alarmObject; dyn_string exc; //create the alarm object fwAlertConfig_objectCreateDiscrete( alarmObject, //the object that will contain the alarm settings makeDynString("ok","not valid","error"), //the text for the 3 ranges makeDynString("*","22,23","24-27"), //the 3 ranges must match these values (the 1st must be always the good one - *) makeDynString("","_fwWarningAck.","_fwErrorAck."), //classes (the 1st one must always be the good one) "", //alarm panel, if necessary makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed false, //impulse alarm makeDynBool(0,0,0), //negation of the matching (0 means "=", 1 means "!=") "", //state bits that must also match for the alarm makeDynString("","",""), //state bits that must match for each range exc ); //exception info returned here //set the alarm to the dpe fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate it fwAlertConfig_activate("testSingleAlarm_01.val", exc);
alertConfigObject | Reference to the object to create |
alertTexts | Alert texts for each range. the first one is always the good one eg. makeDynString( "Ok", "Bad Text", "Bad Text") |
alertMatch | Alert values that must match. Can be one value, a list of values or a range of values. The first value is always "*" e.g. makedynString( "*","1,2","5-10") |
alertClasses | Alert classes for each range eg. makeDynString( "" , "_fwErrorAck.") One of the items of the dyn_string must always be empty to indicate the valid state. eg. makeDynString( "" , "_fwErrorAck.") for FALSE to be good state, makeDynString( "_fwErrorAck." , "") for TRUE to be good state. Don't forget to add the dot to the alert class names. |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to panel given in Alert Panel |
alertHelp | Help text or path to help file |
impulse | TRUE if alert is impulse alert else FALSE |
discreteNegation | for each match values, TRUE if the match is negated (i.e. "!="). |
stateBits | state bits of the discrete alert |
stateMatch | state bits of each value match |
exceptionInfo | Details of any exceptions are returned here |
modifyOnly | Optional parameter - Default value FALSE. Set to TRUE to modify alert without setting "type" attributes. This is much quicker, but the alert config must already exist, be an analog alert and have the same number of ranges as you want. |
fallBackToSet | Optional parameter - Default value FALSE. Used in combination with modifyOnly. If modifyOnly = TRUE and fallBackToSet = FALSE, then if the alert config is not compatible an exception is raised. If modifyOnly = TRUE and fallBackToSet = TRUE, then if the alert config is not compatible, modifyOnly is treated as if it was FALSE. |
addDpeInSummary | Optional parameter - Default value "". Used to add the new alert in a summary alert. Default value "" means do not add the new alert into a summary. You can specify either an absolute DPE name, or a relative path from the DP to which the new alert was saved. i.e. addDpeInSummary = "." will add the new alert on dpes[i] to the summary on the root of the datapoint to which dpes[i] belongs. addDpeInSummary = "MyDp.summaries" will add the new alert on dpes[i] to the summary on the dpe called "MyDp.summaries". Note: The summary alarms must already exist. If they does not exist, it WILL NOT be created. |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS, fwAlertConfig_ALERT_LIMIT_NEGATION, fwAlertConfig_ALERT_LIMIT_STATE_BITS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_LIMIT_VALUE_MATCH, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY, fwAlertConfig_ALERT_PARAM_DISCRETE, fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_IMPULSE, fwAlertConfig_ALERT_PARAM_MODIFY_ONLY, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY, fwAlertConfig_ALERT_PARAM_TYPE, fwAlertConfig_objectConfigExists(), and fwAlertConfig_objectInitialize().
fwAlertConfig_objectCreateSummary | ( | dyn_mixed & | alertConfigObject, |
dyn_string | alertTexts, | ||
int | threshold, | ||
dyn_string | alertClasses, | ||
dyn_string | summaryDpeList, | ||
string | alertPanel, | ||
dyn_string | alertPanelParameters, | ||
string | alertHelp, | ||
dyn_string & | exceptionInfo, | ||
bool | modifyOnly = FALSE , |
||
bool | fallBackToSet = FALSE , |
||
string | addDpeInSummary = "" , |
||
bool | storeInParamHistory = TRUE |
||
) |
Creates a paramaters object for summary alarm. The object is set to the alarm using fwAlertConfig_objectSet().
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //create the params object: fwAlertConfig_objectCreateSummary( alarmObject, makeDynString("cool","hot"), 2, makeDynString("",""), makeDynString("testSingleAlarm_0001.val","testSingleAlarm_0003.val","testSingleAlarm_0004.val","testSingleAlarm_0005.val"), "panel.pnl", //panel name - optional makeDynString("datapointForPanel1.value","datapointForPanel2.value"),//;panel $params - optional "This is a help text", //help text - optional exc); //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.string", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.string", exc);
alertConfigObject | Reference to the object to create |
alertTexts | Alert texts for each range eg. makeDynString( "Bad Text", "OK", "Bad Text") |
threshold | How many single alarms must be triggered before they are filtered (i.e. not visible) by the summary alarm. |
alertClasses | Alert classes for each range eg. makeDynString( "" , "_fwErrorAck.") One of the items of the dyn_string must always be empty to indicate the valid state. eg. makeDynString( "" , "_fwErrorAck.") for FALSE to be good state, makeDynString( "_fwErrorAck." , "") for TRUE to be good state. Don't forget to add the dot to the alert class names. |
summaryDpeList | List of dpes to include in summary alert |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to panel given in Alert Panel |
alertHelp | Help text or path to help file |
exceptionInfo | Details of any exceptions are returned here |
modifyOnly | Optional parameter - Default value FALSE. Set to TRUE to modify alert without setting "type" attributes. This is much quicker, but the alert config must already exist, be an analog alert and have the same number of ranges as you want. |
fallBackToSet | Optional parameter - Default value FALSE. Used in combination with modifyOnly. If modifyOnly = TRUE and fallBackToSet = FALSE, then if the alert config is not compatible an exception is raised. If modifyOnly = TRUE and fallBackToSet = TRUE, then if the alert config is not compatible, modifyOnly is treated as if it was FALSE. |
addDpeInSummary | Optional parameter - Default value "". Used to add the new alert in a summary alert. Default value "" means do not add the new alert into a summary. You can specify either an absolute DPE name, or a relative path from the DP to which the new alert was saved. i.e. addDpeInSummary = "." will add the new alert on dpes[i] to the summary on the root of the datapoint to which dpes[i] belongs. addDpeInSummary = "MyDp.summaries" will add the new alert on dpes[i] to the summary on the dpe called "MyDp.summaries". Note: The summary alarms must already exist. If they does not exist, it WILL NOT be created. |
storeInParamHistory | OPTIONAL PARAMETER - default value = TRUE You can specify if the change should be stored in the Paramterisation History of PVSS |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY, fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_MODIFY_ONLY, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY, fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST, fwAlertConfig_ALERT_PARAM_SUM_THRESHOLD, fwAlertConfig_ALERT_PARAM_TYPE, fwAlertConfig_objectConfigExists(), and fwAlertConfig_objectInitialize().
fwAlertConfig_objectExtractAnalog | ( | dyn_mixed | alertConfigObject, |
int & | alertType, | ||
dyn_string & | alertTexts, | ||
dyn_float & | alertLimits, | ||
dyn_string & | alertClasses, | ||
string & | alertPanel, | ||
dyn_string & | alertPanelParameters, | ||
string & | alertHelp, | ||
dyn_bool & | limitsIncluded, | ||
bool & | isActive, | ||
dyn_string & | exceptionInfo | ||
) |
Returns the details of an analog alert configuration in a parameter object preivously filled.
dyn_mixed alarmConfigObject; dyn_string exc; int alertType; dyn_string alertTexts; dyn_float alertLimits; dyn_string alertClasses; string alertPanel; dyn_string alertPanelParameters; string alertHelp; dyn_bool limitsIncluded; bool isActive; //get the alarm and store it in the configuration object fwAlertConfig_objectGet("testSingleAlarm_01.val",alarmConfigObject, exc); //verfy that the alarm is analog fwAlertConfig_objectExtractType(alarmConfigObject, alertType, isActive, exc); //extract the parameters if(alertType==DPCONFIG_ALERT_NONBINARYSIGNAL) fwAlertConfig_objectExtractAnalog( alarmConfigObject, alertType, alertTexts, alertLimits, alertClasses, alertPanel, alertPanelParameters, alertHelp, limitsIncluded, isActive, exc);
alertConfigObject | object from where to extract the parameters |
alertType | Type of alert: DPCONFIG_ALERT_BINARYSIGNAL if digital alert handling DPCONFIG_ALERT_NONBINARYSIGNAL if analog alert handling DPCONFIG_SUM_ALERT if summary alert handling DPCONFIG_NONE if no alert handling |
alertTexts | Alert texts are returned here |
alertLimits | Alert limits are returned here |
alertClasses | Alert classes are returned here |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to the given alertPanel |
alertHelp | Help text or path to help file |
limitsIncluded | if the limit is included (<=) or excluded (<) |
isActive | if alert is active |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_LIMIT_VALUE, fwAlertConfig_ALERT_LIMIT_VALUE_INCLUDED, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ACTIVE, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_objectConfigExists().
fwAlertConfig_objectExtractDigital | ( | dyn_mixed | alertConfigObject, |
int & | alertType, | ||
dyn_string & | alertTexts, | ||
dyn_string & | alertClasses, | ||
string & | alertPanel, | ||
dyn_string & | alertPanelParameters, | ||
string & | alertHelp, | ||
bool & | isActive, | ||
dyn_string & | exceptionInfo | ||
) |
Returns the details of a digital alert configuration in a parameter object preivously filled.
alertConfigObject | object from where to extract the parameters |
alertType | Type of alert: DPCONFIG_ALERT_BINARYSIGNAL if digital alert handling DPCONFIG_ALERT_NONBINARYSIGNAL if analog alert handling DPCONFIG_SUM_ALERT if summary alert handling DPCONFIG_NONE if no alert handling |
alertTexts | Alert texts are returned here |
alertClasses | Alert classes are returned here |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to the given alertPanel |
alertHelp | Help text or path to help file |
isActive | if alert is active |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ACTIVE, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_objectConfigExists().
fwAlertConfig_objectExtractDiscrete | ( | dyn_mixed | alertConfigObject, |
int & | alertType, | ||
dyn_string & | alertTexts, | ||
dyn_string & | alertMatches, | ||
dyn_string & | alertClasses, | ||
string & | alertPanel, | ||
dyn_string & | alertPanelParameters, | ||
string & | alertHelp, | ||
bool & | isDiscrete, | ||
bool & | impulse, | ||
dyn_bool & | discreteNegation, | ||
string & | stateBits, | ||
dyn_string & | stateMatch, | ||
bool & | isActive, | ||
dyn_string & | exceptionInfo | ||
) |
Returns the details of a discrete alert configuration in a parameter object preivously filled.
alertConfigObject | object from where to extract the parameters |
alertType | Type of alert: DPCONFIG_ALERT_BINARYSIGNAL if digital alert handling DPCONFIG_ALERT_NONBINARYSIGNAL if analog alert handling DPCONFIG_NONE if no alert handling |
alertTexts | Alert texts are returned here |
alertMatches | Alert limits are returned here |
alertClasses | Alert classes are returned here |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to the given alertPanel |
alertHelp | Help text or path to help file |
isDiscrete | TRUE if the alert is discrete |
impulse | TRUE if alert is impulse alert else FALSE |
discreteNegation | for each match values, TRUE if the match is negated (i.e. "!="). |
stateBits | state bits of the discrete alert |
stateMatch | state bits of each value match |
isActive | if alert is active |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS, fwAlertConfig_ALERT_LIMIT_NEGATION, fwAlertConfig_ALERT_LIMIT_STATE_BITS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_LIMIT_VALUE_MATCH, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ACTIVE, fwAlertConfig_ALERT_PARAM_DISCRETE, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_IMPULSE, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_objectConfigExists().
fwAlertConfig_objectExtractSummary | ( | dyn_mixed | alertConfigObject, |
int & | alertType, | ||
dyn_string & | alertTexts, | ||
dyn_string & | summaryDpeList, | ||
int & | threshold, | ||
string & | alertClass, | ||
string & | alertPanel, | ||
dyn_string & | alertPanelParameters, | ||
string & | alertHelp, | ||
bool & | isActive, | ||
dyn_string & | exceptionInfo | ||
) |
Returns the details of a summary alert configuration in a parameter object preivously filled.
alertConfigObject | object from where to extract the parameters |
alertType | Type of alert: DPCONFIG_ALERT_BINARYSIGNAL if digital alert handling DPCONFIG_ALERT_NONBINARYSIGNAL if analog alert handling DPCONFIG_SUM_ALERT if summary alert handling DPCONFIG_NONE if no alert handling |
alertTexts | Alert texts are returned here |
threshold | How many single alarms must be triggered before they are filtered (i.e. not visible) by the summary alarm. |
summaryDpeList | List of dpes to include in summary alert |
alertClass | Alert classes are returned here |
alertPanel | Panel to call from the alert screen |
alertPanelParameters | Parameters to pass to the given alertPanel |
alertHelp | Help text or path to help file |
isActive | if alert is active |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ACTIVE, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_objectConfigExists().
fwAlertConfig_objectExtractType | ( | dyn_mixed | alertConfigObject, |
int & | alertType, | ||
bool & | isActive, | ||
dyn_string & | exceptionInfo | ||
) |
Returns the type of alert configuration in a parameter object preivously filled.
alertConfigObject | object from where to extract the parameters |
alertType | Type of alert: DPCONFIG_ALERT_BINARYSIGNAL if digital alert handling DPCONFIG_ALERT_NONBINARYSIGNAL if analog alert handling DPCONFIG_SUM_ALERT if summary alert handling DPCONFIG_NONE if no alert handling |
isActive | if alert is active |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ACTIVE, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_objectConfigExists().
fwAlertConfig_objectGet | ( | string | dpe, |
dyn_mixed & | alertConfigObject, | ||
dyn_string & | exceptionInfo | ||
) |
Returns the details of any alert configuration on a given dpe. This function can handle digital, analog and summary alerts. For more info refer to fwAlertConfig_objectSet()
dyn_mixed alarmConfigObject; dyn_string exc; int alertType; dyn_string alertTexts; dyn_float alertLimits; dyn_string alertClasses; string alertPanel; dyn_string alertPanelParameters; string alertHelp; dyn_bool limitsIncluded; bool isActive; //get the alarm and store it in the configuration object fwAlertConfig_objectGet("testSingleAlarm_01.val",alarmConfigObject, exc); //verfy that the alarm is analog fwAlertConfig_objectExtractType(alarmConfigObject, alertType, isActive, exc); //extract the parameters if(alertType==DPCONFIG_ALERT_NONBINARYSIGNAL) fwAlertConfig_objectExtractAnalog( alarmConfigObject, alertType, alertTexts, alertLimits, alertClasses, alertPanel, alertPanelParameters, alertHelp, limitsIncluded, isActive, exc);
dpe | Name of data point element to read from |
alertConfigObject | returns the object containing the parameters and the limits objects of the alarm. |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_objectGetMany().
fwAlertConfig_objectGetMany | ( | dyn_string & | dpes, |
dyn_dyn_mixed & | alertConfigObjects, | ||
dyn_string & | exceptionInfo | ||
) |
Get alarm based on alarm params and limits objects. For further info on how to handle alertConfigObjects, refer to the examples in fwAlertConfig_objectSet()
dyn_string exc; dyn_string dpe; dyn_mixed alertObjects; int i; dyn_string exc; int alertType; dyn_string alertTexts; dyn_float alertLimits; dyn_string alertClasses; string alertPanel; dyn_string alertPanelParameters; string alertHelp; dyn_bool limitsIncluded; bool isActive; //list of dpes makeDynString("sys1:dpe1.val","sys1:dpe2.val"); fwAlertConfig_objectGetMany(dpe, alertObjects, exc); for(i=1 ; i<=dynlen(dpe) ; i++) { //verfy that the alarm is analog fwAlertConfig_objectExtractType(alarmConfigObject, alertType, isActive, exc); //extract the parameters if(alertType==DPCONFIG_ALERT_NONBINARYSIGNAL) fwAlertConfig_objectExtractAnalog( alarmConfigObject, alertType, alertTexts, alertLimits, alertClasses, alertPanel, alertPanelParameters, alertHelp, limitsIncluded, isActive, exc); }
dpes | Names of data point elements to read from. It is passed as reference only for performance reasons. It is not modified. |
alertConfigObjects | returns the objects containing the parameters and the limits objects of the alarm. |
exceptionInfo | Details of any exceptions are returned here |
References _fwAlertConfig_objectCreateParams(), _fwConfigs_getConfigTypeAttribute(), fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS, fwAlertConfig_ALERT_LIMIT_NEGATION, fwAlertConfig_ALERT_LIMIT_STATE_BITS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_LIMIT_TEXT_WENT, fwAlertConfig_ALERT_LIMIT_VALUE, fwAlertConfig_ALERT_LIMIT_VALUE_INCLUDED, fwAlertConfig_ALERT_LIMIT_VALUE_MATCH, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ACTIVE, fwAlertConfig_ALERT_PARAM_DISCRETE, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST, fwAlertConfig_ALERT_PARAM_SUM_THRESHOLD, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_objectInitialize().
Referenced by fwAlertConfig_objectGet().
fwAlertConfig_objectInitialize | ( | dyn_mixed & | paramsObject, |
int | totalRanges | ||
) |
Set alarm object based on alarm params and limits. See note on fwAlertConfig_objectSet() for an example
paramsObject | object containing the alarm parameters and limits |
totalRanges | alarm ranges |
References _fwAlertConfig_objectCreateParams(), fwAlertConfig_ALERT_LIMIT, and fwAlertConfig_ALERT_PARAM.
Referenced by fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), and fwAlertConfig_objectGetMany().
fwAlertConfig_objectSet | ( | string | dpe, |
dyn_mixed | alertConfigObject, | ||
dyn_string & | exceptionInfo | ||
) |
Set the alert with the alert parameter object. The alert parameter object must be previously filled. The object is a dyn_mixed variable. It is made of two dyn_dyn_mixed sub-variables:
How to fill the parameters object: use one of the functions "fwAlertConfig_objectCreate..." or fill it manually as in the examples given here:
dyn_mixed alarmObject; dyn_string exc; //create the alarm object fwAlertConfig_objectCreateAnalog( alarmObject, //the object that will contain the alarm settings makeDynString("too cold","normal","too hot"), //the text for the 3 ranges makeDynFloat(0,22,33), //the 3 ranges are separated by the values 22 and 33. The 1st value must always be 0. makeDynString("_fwWarningAck.","","_fwErrorAck."), //classes "", //alarm panel, if necessary makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed makeDynBool(0,1,0), //value included (1 means ">=", 0 means ">", 1st element ignored). Here: <= 22: too cold; 23..32: normal; >= 33: too hot exc); //exception info returned here //set the alarm to the dpe fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate it fwAlertConfig_activate("testSingleAlarm_01.val", exc);
dyn_mixed alarmObject; dyn_string exc; //create the alarm object fwAlertConfig_objectCreateDiscrete( alarmObject, //the object that will contain the alarm settings makeDynString("ok","not valid","error"), //the text for the 3 ranges makeDynString("*","22,23","24-27"), //the 3 ranges must match these values (the 1st must be always the good one - *) makeDynString("","_fwWarningAck.","_fwErrorAck."), //classes (the 1st one must always be the good one) "", //alarm panel, if necessary makeDynString(""), //$-params to pass to the alarm panel, if necessary "", //alarm help, if needed false, //impulse alarm makeDynBool(0,0,0), //negation of the matching (0 means "=", 1 means "!=") "", //state bits that must also match for the alarm makeDynString("","",""), //state bits that must match for each range exc ); //exception info returned here //set the alarm to the dpe fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate it fwAlertConfig_activate("testSingleAlarm_01.val", exc);
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the alarm object with 3 ranges: fwAlertConfig_objectInitialize(alarmObject,3); //extract the limits parameters from the alarm object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: //text for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "cold"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "hot"; //values delimiting the ranges of the alarm. alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE] = 0; //1st element is always ignored alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE] = 22; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE] = 33; //class for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; //this is the ok range: no class alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //store the limits parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: //set the type of the alarm alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; //store the general parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate the alarm fwAlertConfig_activate("testSingleAlarm_01.val", exc);
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the alarm object with 2 ranges: fwAlertConfig_objectInitialize(alarmObject,2); //extract the limits parameters from the alarm object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: //text for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "error"; //class for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; //store the limits parameters back to the object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the alarm object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_BINARYSIGNAL; //store the general parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.trip", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.trip", exc);
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the alarm object with 2 ranges: fwAlertConfig_objectInitialize(alarmObject,2); //extract the limits parameters of the object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: //text for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "error"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; //class for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; //store the limits parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the alarm object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_BINARYSIGNAL; //store the general parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.trip", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.trip", exc);
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the alarm object with 3 ranges: fwAlertConfig_objectInitialize(alarmObject,3); //extract the limits parameters of the alarm object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: //text for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "system ok"; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "no connection"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "system fault"; //value to be matched for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "*"; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "22, 23, 24"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "29-33"; //if value to be matched for each range of the alarm must be negated (this is an option) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_NEGATION] = false; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_NEGATION] = true; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_NEGATION] = false; //class for each range of the alarm alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; //1st element must always be the good range; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //pattern match of state bits (this is an option) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_STATE_BITS] = "11000000000000000000000001010101XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; //only the 1st element is considered. All the others are ignored; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_STATE_BITS] = ""; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_STATE_BITS] = ""; //pattern match of state bits for each range (this is an option) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS] = ""; //1st element must always have this value; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS] = "0010xxxxxxxxx0101011000000001000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS] = "001x00xxxxxxx010xx11011110000000XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; //store the limits parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the alarm object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: //the alarm is a non-binary one alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; //the alarm is discrete alarmParams[fwAlertConfig_ALERT_PARAM_DISCRETE][1] = true; //store the general parameters back to the alarm object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.val", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.val", exc);
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //create the params object: fwAlertConfig_objectCreateSummary( alarmObject, makeDynString("cool","hot"), 2, makeDynString("",""), makeDynString("testSingleAlarm_0001.val","testSingleAlarm_0003.val","testSingleAlarm_0004.val","testSingleAlarm_0005.val"), "panel.pnl", //panel name - optional makeDynString("datapointForPanel1.value","datapointForPanel2.value"),//;panel $params - optional "This is a help text", //help text - optional exc); //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.string", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.string", exc);
dyn_mixed alarmObject; dyn_dyn_anytype alarmLimits, alarmParams; dyn_string exc; //initialize the params object (2 ranges for ummary alert): fwAlertConfig_objectInitialize( alarmObject,2); //extract the limits parameters of the object: alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]; //set the limits parameters: alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "on"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "error"; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; //store the limits parameters back to the object: alarmObject[fwAlertConfig_ALERT_LIMIT] = alarmLimits; //extract the general parameters of the object: alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]; //set the general parameters: alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_SUM_ALERT; alarmParams[fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST] = makeDynString("testSingleAlarm_0001.val","testSingleAlarm_0003.val","testSingleAlarm_0004.val"); alarmParams[fwAlertConfig_ALERT_PARAM_SUM_THRESHOLD][1] = 2; //store the general parameters back to the object: alarmObject[fwAlertConfig_ALERT_PARAM] = alarmParams; //set the object to the datapoint element: fwAlertConfig_objectSet("testSingleAlarm_01.string", alarmObject, exc); //activate the alarm: fwAlertConfig_activate("testSingleAlarm_01.string", exc);
dpe | the datapoint element to configure |
alertConfigObject | object from where to extract the parameters |
exceptionInfo | Details of any exceptions are returned here |
References fwAlertConfig_objectSetMany().
fwAlertConfig_objectSetMany | ( | dyn_string & | dpes, |
dyn_dyn_mixed & | alertConfigObjects, | ||
dyn_string & | exceptionInfo | ||
) |
Set the alert with the alert parameter object alertConfigObject. The alert parameter object must be previously filled. How to fill it: fill each elemt of the array alertConfigObject[i] using one of the functions "fwAlertConfig_objectCreate..." or fill it manually as in the examples given for fwAlertConfig_objectSet()
One object per dpe must be filled. Optionally, one only object (index 1) can be filled and several dpes can be passed. In such case, the function sets the same object to all the dpes. In this case, the dpes must all be of the same type.
This function is more efficient that applying the function fwAlertConfig_objectSet() in a loop.
dyn_dyn_anytype alarmLimits, alarmParams; dyn_dyn_mixed alarmObject; dyn_anytype alarms; dyn_string exc, dpe; int i; //list of datapoint elements dpe = makeDynString("dpe1","dpe2"); // alarm 1 i = 1; //initialize alarm object fwAlertConfig_objectInitialize(alarmObject[i],3); //extract limits array alarmLimits = alarmObject[i][2]; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "warm"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "hot"; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE] = 0; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE] = 11; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE] = 22; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //extract parameters array: alarmParams = alarmObject[i][1]; //set the type alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; //put limits and parameters arrays to the object: alarmObject[i][1] = alarmParams; alarmObject[i][2] = alarmLimits; // alarm 2 i = 2; //initialize alarm object fwAlertConfig_objectInitialize(alarmObject[i],3); //extract limits array: alarmLimits = alarmObject[i][2]; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "high voltage"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "voltage trip"; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE] = 0; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE] = 1000; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE] = 1100; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //extract parameters array alarmParams = alarmObject[i][1]; //set the type alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; //put limits and parameters arrays to the object: alarmObject[i][1] = alarmParams; alarmObject[i][2] = alarmLimits; //set the 2 alarms to the 2 dpes: fwAlertConfig_objectSetMany(dpe,alarmObject, exc); //activate the alerts fwAlertConfig_activateMultiple(dpe, exc);
dyn_dyn_anytype alarmLimits, alarmParams; dyn_dyn_mixed alarmObject; dyn_anytype alarms; dyn_string exc, dpe; //list of datapoint elements dpe = makeDynString("dpe1","dpe2","dpe3","dpe4"); //initialize alarm object fwAlertConfig_objectInitialize( alarmObject[1],3); //extract limits array: alarmLimits = alarmObject[1][2]; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "warm"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "hot"; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE] = 0; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE] = 11; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE] = 22; alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //extract parameters array: alarmParams = alarmObject[1][1]; //set the type alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; //put limits and parameters arrays to the object: alarmObject[1][1] = alarmParams; alarmObject[1][2] = alarmLimits; //set the 4 dpes with the same alarm setting: fwAlertConfig_objectSetMany(dpe,alarmObject, exc); //activate the alerts fwAlertConfig_activateMultiple(dpe, exc);
dyn_dyn_mixed alarmConfigObject; dyn_string exc, dpe; int i; dyn_dyn_anytype alarmLimits, alarmParams; dyn_dyn_mixed alarmObject; dyn_anytype alarms; //list of datapoint elements dpe = makeDynString("dpe1","dpe2","dpe3","dpe4"); //initialize alarm object fwAlertConfig_objectInitialize(alarmObject,3); //extract parameters array: alarmParams = alarmObject[1]; //extract limits array: alarmLimits = alarmObject[2]; //set the 4 alarm settings: for(i=1 ; i<=(dynlen(dpe)) ; i++) { //set the texts (first text is always the normal range) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_TEXT] = "ok"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_TEXT] = "warning"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_TEXT] = "fault"; //set the pattern match (first pattern is always the normal range *) alarmLimits[1][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "*"; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "10010111101"; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_VALUE_MATCH] = "10001011011,000110110101"; //set the class for each value match alarmLimits[1][fwAlertConfig_ALERT_LIMIT_CLASS] = ""; alarmLimits[2][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwWarningAck."; alarmLimits[3][fwAlertConfig_ALERT_LIMIT_CLASS] = "_fwErrorAck."; //set the parameters common to the alarm alarmParams[fwAlertConfig_ALERT_PARAM_TYPE][1] = DPCONFIG_ALERT_NONBINARYSIGNAL; alarmParams[fwAlertConfig_ALERT_PARAM_DISCRETE][1] = true; alarmParams[fwAlertConfig_ALERT_PARAM_RANGES][1] = 3; //put limits and parameters arrays to the object: alarmObject[i][1] = alarmParams; alarmObject[i][2] = alarmLimits; } //set the 4 dpes with the 4 alarm settings: fwAlertConfig_objectSetMany(dpe,alarmObject, exc); //activate the alerts fwAlertConfig_activateMultiple(dpe, exc);
dpes | list of datapoint elements to configure. It is passed as reference only for performance reasons. It is not modified. |
alertConfigObjects | list of objects from where to extract the parameters. The amount of alarm configuration objects must match the amount of dpes. Alternatively, if the number of alarm configuration objects is only one, that configuration is then applied to all the dpes in the list. Passed as reference only for performance reasons. Not modified. |
exceptionInfo | Details of any exceptions are returned here |
References _fwAlertConfig_prepareAnalog(), _fwAlertConfig_prepareAnalogDiscrete(), _fwAlertConfig_prepareDigital(), _fwAlertConfig_prepareDigitalDiscrete(), _fwAlertConfig_prepareSummary(), _fwConfigs_getConfigOptionsForDpe(), _fwConfigs_getConfigTypeAttribute(), fwAlertConfig_activateMultiple(), fwAlertConfig_addDpInAlertSummary(), fwAlertConfig_ALERT_LIMIT, fwAlertConfig_ALERT_LIMIT_CLASS, fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS, fwAlertConfig_ALERT_LIMIT_NEGATION, fwAlertConfig_ALERT_LIMIT_STATE_BITS, fwAlertConfig_ALERT_LIMIT_TEXT, fwAlertConfig_ALERT_LIMIT_TEXT_WENT, fwAlertConfig_ALERT_LIMIT_VALUE, fwAlertConfig_ALERT_LIMIT_VALUE_INCLUDED, fwAlertConfig_ALERT_LIMIT_VALUE_MATCH, fwAlertConfig_ALERT_PARAM, fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY, fwAlertConfig_ALERT_PARAM_DISCRETE, fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET, fwAlertConfig_ALERT_PARAM_HELP, fwAlertConfig_ALERT_PARAM_IMPULSE, fwAlertConfig_ALERT_PARAM_MODIFY_ONLY, fwAlertConfig_ALERT_PARAM_PANEL, fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS, fwAlertConfig_ALERT_PARAM_RANGES, fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY, fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST, fwAlertConfig_ALERT_PARAM_SUM_THRESHOLD, fwAlertConfig_ALERT_PARAM_TYPE, and fwAlertConfig_deactivateMultiple().
Referenced by fwAlertConfig_objectSet().
const int fwAlertConfig_ALERT_LIMIT = 2 |
Referenced by fwAlertConfig_objectConfigExists(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), fwAlertConfig_objectInitialize(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_CLASS = 4 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_LIMITS_STATE_BITS = 10 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_NEGATION = 8 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_STATE_BITS = 9 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_TEXT = 1 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_TEXT_WENT = 11 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_VALUE = 2 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_VALUE_INCLUDED = 3 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_LIMIT_VALUE_MATCH = 5 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM = 1 |
Referenced by fwAlertConfig_objectConfigExists(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectExtractType(), fwAlertConfig_objectGetMany(), fwAlertConfig_objectInitialize(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_ACTIVE = 14 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectExtractType(), and fwAlertConfig_objectGetMany().
const int fwAlertConfig_ALERT_PARAM_ADD_DPE_TO_SUMMARY = 3 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_DISCRETE = 8 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_FALLBACK_TO_SET = 11 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_HELP = 7 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_IMPULSE = 9 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectExtractDiscrete(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_MODIFY_ONLY = 10 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_PANEL = 5 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_PANEL_PARAMETERS = 6 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_RANGES = 13 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_STORE_IN_HISTORY = 12 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_SUM_DPE_LIST = 2 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_SUM_THRESHOLD = 4 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().
const int fwAlertConfig_ALERT_PARAM_TYPE = 1 |
Referenced by _fwAlertConfig_objectCreateParams(), fwAlertConfig_objectConfigExists(), fwAlertConfig_objectCreateAnalog(), fwAlertConfig_objectCreateDigital(), fwAlertConfig_objectCreateDiscrete(), fwAlertConfig_objectCreateSummary(), fwAlertConfig_objectExtractAnalog(), fwAlertConfig_objectExtractDigital(), fwAlertConfig_objectExtractDiscrete(), fwAlertConfig_objectExtractSummary(), fwAlertConfig_objectExtractType(), fwAlertConfig_objectGetMany(), and fwAlertConfig_objectSetMany().