fwAlertConfig_Examples.ctl File Reference

Functions

 fwAlertConfig_objectCreateAnalog (alarmObject, makeDynString("too cold","normal","too hot"), makeDynFloat(0, 22, 33), makeDynString("_fwWarningAck.","","_fwErrorAck."),"", makeDynString(""),"", makeDynBool(0, 1, 0), exc)
 fwAlertConfig_objectSet ("testSingleAlarm_01.val", alarmObject, exc)
 fwAlertConfig_activate ("testSingleAlarm_01.val", exc)
 fwAlertConfig_objectInitialize (alarmObject, 3)
 fwAlertConfig_objectCreateDiscrete (alarmObject, makeDynString("ok","not valid","error"), makeDynString("*","22,23","24-27"), makeDynString("","_fwWarningAck.","_fwErrorAck."),"", makeDynString(""),"", false, makeDynBool(0, 0, 0),"", makeDynString("","",""), exc)
 fwAlertConfig_objectCreateDigital (alarmObject, makeDynString("ok","hot"), makeDynString("","_fwWarningAck."),"panel.pnl", makeDynString("datapointForPanel1.value","datapointForPanel2.value"),"This is a help text", exc)
 fwAlertConfig_objectSet ("testSingleAlarm_01.trip", alarmObject, exc)
 fwAlertConfig_activate ("testSingleAlarm_01.trip", exc)
 fwAlertConfig_objectCreateDigital (alarmObject, makeDynString("cool","ok"), makeDynString("_fwWarningAck","."),"panel.pnl", makeDynString("datapointForPanel1.value","datapointForPanel2.value"),"This is a help text", exc)
 fwAlertConfig_objectInitialize (alarmObject, 2)
 fwAlertConfig_objectCreateSummary (alarmObject, makeDynString("cool","hot"), 2, makeDynString("",""), makeDynString("testSingleAlarm_0001.val","testSingleAlarm_0003.val","testSingleAlarm_0004.val","testSingleAlarm_0005.val"),"panel.pnl", makeDynString("datapointForPanel1.value","datapointForPanel2.value"),"This is a help text", exc)
 fwAlertConfig_objectSet ("testSingleAlarm_01.string", alarmObject, exc)
 fwAlertConfig_activate ("testSingleAlarm_01.string", exc)
 fwAlertConfig_objectInitialize (alarmObject[i], 3)
 fwAlertConfig_objectSetMany (dpe, alarmObject, exc)
 fwAlertConfig_activateMultiple (dpe, exc)
 fwAlertConfig_objectInitialize (alarmObject[1], 3)
 for (i=1;i<=(dynlen(dpe));i++)
 fwAlertConfig_objectCreateAnalog (alarmObject, makeDynString("too cold","normal","too hot"), makeDynFloat(0, 22, 33), makeDynString("_fwWarningAck.","","_fwErrorAck."), makeDynString(""),"", makeDynBool(0, 1, 0), exc)
 dynClear (alarmObject)
 fwAlertConfig_objectCreateAnalog (alarmObject, makeDynString("too cold","normal","too hot"), makeDynFloat(0, 44, 56), makeDynString("_fwWarningAck.","","_fwErrorAck."), makeDynString(""),"", makeDynBool(0, 0, 0), exc)
 fwAlertConfig_objectSetMany (dpe, alarmObjects, exc)
 fwAlertConfig_objectGet ("testSingleAlarm_01.val", alarmConfigObject, exc)
 fwAlertConfig_objectExtractType (alarmConfigObject, alertType, isActive, exc)
 if (alertType==DPCONFIG_ALERT_NONBINARYSIGNAL) fwAlertConfig_objectExtractAnalog(alarmConfigObject
 makeDynString ("sys1:dpe1.val","sys1:dpe2.val")
 fwAlertConfig_objectGetMany (dpe, alertObjects, exc)

Variables

dyn_mixed alarmObject = alarmLimits
 [Example: create Analog with utility function]
dyn_string exc
 [Example: get an analog alarm from a dpe]
dyn_dyn_anytype alarmLimits = alarmObject[fwAlertConfig_ALERT_LIMIT]
 [Example: create Summary without utility function]
dyn_dyn_anytype alarmParams = alarmObject[fwAlertConfig_ALERT_PARAM]
dyn_anytype alarms
dyn_string dpe = makeDynString("dpe1", "dpe2")
int i = 1
dyn_dyn_mixed alarmConfigObject
 [Example: set 4 alarms without utility function]
dyn_mixed alarmObjects = alarmObject
int alertType
dyn_string alertTexts
dyn_float alertLimits
dyn_string alertClasses
string alertPanel
dyn_string alertPanelParameters
string alertHelp
dyn_bool limitsIncluded
bool isActive
dyn_mixed alertObjects

Detailed Description

This file contains only documentation of the fwConfigs library set

Creation Date
14/09/2011
Author:
Marco Boccioli (EN/ICE-SCD)

Function Documentation

fwAlertConfig_objectCreateAnalog ( alarmObject  ,
makeDynString("too cold","normal","too hot")  ,
makeDynFloat(0, 22, 33)  ,
makeDynString("_fwWarningAck.","","_fwErrorAck.")  ,
""  ,
makeDynString("")  ,
""  ,
makeDynBool(0, 1, 0)  ,
exc   
)
fwAlertConfig_objectSet ( "testSingleAlarm_01.val"  ,
alarmObject  ,
exc   
)
fwAlertConfig_activate ( "testSingleAlarm_01.val"  ,
exc   
)
fwAlertConfig_objectInitialize ( alarmObject  ,
 
)
fwAlertConfig_objectCreateDiscrete ( alarmObject  ,
makeDynString("ok","not valid","error")  ,
makeDynString("*","22,23","24-27")  ,
makeDynString("","_fwWarningAck.","_fwErrorAck.")  ,
""  ,
makeDynString("")  ,
""  ,
false  ,
makeDynBool(0, 0, 0)  ,
""  ,
makeDynString("","","")  ,
exc   
)
fwAlertConfig_objectCreateDigital ( alarmObject  ,
makeDynString("ok","hot")  ,
makeDynString("","_fwWarningAck.")  ,
"panel.pnl"  ,
makeDynString("datapointForPanel1.value","datapointForPanel2.value")  ,
"This is a help text"  ,
exc   
)
fwAlertConfig_objectSet ( "testSingleAlarm_01.trip"  ,
alarmObject  ,
exc   
)
fwAlertConfig_activate ( "testSingleAlarm_01.trip"  ,
exc   
)
fwAlertConfig_objectCreateDigital ( alarmObject  ,
makeDynString("cool","ok")  ,
makeDynString("_fwWarningAck",".")  ,
"panel.pnl"  ,
makeDynString("datapointForPanel1.value","datapointForPanel2.value")  ,
"This is a help text"  ,
exc   
)
fwAlertConfig_objectInitialize ( alarmObject  ,
 
)
fwAlertConfig_objectCreateSummary ( alarmObject  ,
makeDynString("cool","hot")  ,
,
makeDynString("","")  ,
makeDynString("testSingleAlarm_0001.val","testSingleAlarm_0003.val","testSingleAlarm_0004.val","testSingleAlarm_0005.val")  ,
"panel.pnl"  ,
makeDynString("datapointForPanel1.value","datapointForPanel2.value")  ,
"This is a help text"  ,
exc   
)
fwAlertConfig_objectSet ( "testSingleAlarm_01.string"  ,
alarmObject  ,
exc   
)
fwAlertConfig_activate ( "testSingleAlarm_01.string"  ,
exc   
)
fwAlertConfig_objectInitialize ( alarmObject  [i],
 
)
fwAlertConfig_objectSetMany ( dpe  ,
alarmObject  ,
exc   
)
fwAlertConfig_activateMultiple ( dpe  ,
exc   
)
fwAlertConfig_objectInitialize ( alarmObject  [1],
 
)
for (  ) 
fwAlertConfig_objectCreateAnalog ( alarmObject  ,
makeDynString("too cold","normal","too hot")  ,
makeDynFloat(0, 22, 33)  ,
makeDynString("_fwWarningAck.","","_fwErrorAck.")  ,
makeDynString("")  ,
""  ,
makeDynBool(0, 1, 0)  ,
exc   
)
dynClear ( alarmObject   ) 
fwAlertConfig_objectCreateAnalog ( alarmObject  ,
makeDynString("too cold","normal","too hot")  ,
makeDynFloat(0, 44, 56)  ,
makeDynString("_fwWarningAck.","","_fwErrorAck.")  ,
makeDynString("")  ,
""  ,
makeDynBool(0, 0, 0)  ,
exc   
)
fwAlertConfig_objectSetMany ( dpe  ,
alarmObjects  ,
exc   
)
fwAlertConfig_objectGet ( "testSingleAlarm_01.val"  ,
alarmConfigObject  ,
exc   
)
fwAlertConfig_objectExtractType ( alarmConfigObject  ,
alertType  ,
isActive  ,
exc   
)
if ( alertType  = = DPCONFIG_ALERT_NONBINARYSIGNAL  ) 
makeDynString ( "sys1:dpe1.val"  ,
"sys1:dpe2.val"   
)
fwAlertConfig_objectGetMany ( dpe  ,
alertObjects  ,
exc   
)

Variable Documentation

dyn_mixed alarmObject = alarmLimits

[Example: create Analog with utility function]

[Example: set 4 alarms bit32 without utility function]

[Example: create Analog without utility function]

[Example: create Discrete with utility function]

[Example: create Discrete without utility function]

[Example: create Digital, false=ok, with utility function]

[Example: create Digital, true=ok, with utility function]

[Example: create Digital, false=ok, without utility function]

[Example: create Digital, true=ok, without utility function]

[Example: create Summary with utility function]

[Example: create Summary without utility function]

[Example: set 2 alarms with utility function]

[Example: set one alarm into 2 dpes with utility function]

dyn_string exc

[Example: get an analog alarm from a dpe]

[Example: get alarms from two dpes]

[Example: create Summary without utility function]

[Example: set 2 alarms without utility function]

[Example: set 4 alarms without utility function]

dyn_anytype alarms
dyn_string dpe = makeDynString("dpe1", "dpe2")
int i = 1
dyn_mixed alarmConfigObject

[Example: set 4 alarms without utility function]

[Example: set one alarm into 2 dpes with utility function]

[Example: set 4 alarms bit32 without utility function]

[Example: get an analog alarm from a dpe]

int alertType
dyn_string alertTexts
dyn_float alertLimits
dyn_string alertClasses
string alertPanel
string alertHelp
dyn_bool limitsIncluded
bool isActive
dyn_mixed alertObjects

Generated on 10 Dec 2015 for fwConfigs by  doxygen 1.6.1