1 / 7

DSS Enhancements May 2011

DSS Enhancements May 2011. Work in progress on the list of points discussed last time Improvements in the handling of the Periodic Actions Improvements in handling the situation generated by a crash of the UI (or the loss of the connection) while a DSS Item is being created.

zaza
Download Presentation

DSS Enhancements May 2011

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DSS Enhancements May 2011 Work in progress on the list of points discussed last time Improvements in the handling of the Periodic Actions Improvements in handling the situation generated by a crash of the UI (or the loss of the connection) while a DSS Item is being created.

  2. Improvements in the handling of the Periodic Actions • The code of script ProcessPeriodic.ctl has been restructured, to use the try-catch-finally control structure in order to better handle errors and exception. The idea is to get experience with this structure on a piece of code which did not require many modification, and later to extend it to other scripts. • A new panel “MonitorPeriodicActions” has been created, to enable a better diagnostic in case of problems. From this panel one can trigger the periodic actions, and follow their execution.

  3. //======================================== • // PIQUET REPORT • //======================================== • void PF_PiquetReport(string dpe,intval) • { • int use; • string dp; • DebugN("PF_PiquetReport"); • dp = dpSubStr(dpe,DPSUB_DP); • dpSetWait(dp+".start_time",getCurrentTime()); • dpSetWait(dp+".status","RUNNING"); • try { • dpGet("DSS_InformPiquet.Count",use); • if (use >= 0) LF_SendDSSReport(); • dpSetWait(dp+".status","COMPLETED"); • } • catch { • dpSetWait(dp+".status","ABORTED"); • LF_AbortedInformExpert(dp); • } • finally { • dpSetWait(dp+".end_time",getCurrentTime()); • } • } Try to perform the operation In case of any error, inform the expert

  4. Expert Panel to monitor/trigger the Periodic Operations

  5. Improvements in handling the situation generated by a crash of the UI (or the loss of the connection) while a DSS Item is being created. • When the User creates a new DSS Item (Sensor, Alarm or Actuator), a datapoint is created just before the wizard panel is started. • The User navigates through the panel’s tabs, to enter all the parameters for the Item • At any time he could click “Cancel”, or close the panel. In this case, the datapoint will be deleted • Once all compulsory parameters have been entered, he could click “Finish”. In this case the parameters will be transferred to the datapoint, and the new Item will be usable • If for any reason the UI crashes before the User clicks “Finish”, the datapoint will not be deleted, but the parameters will not be written. This situation until now was not well handled, and it caused problems

  6. Problems due to incompleted items • dpe.Definition.Locationis empty. Its value is used mainly in Ctrl Manager script ActionList (to handle the status of the Location tree). This problem is common to all item types. • For the Alarms, several dpes of type dyn_int or dyn_string are empty, instead of containing 8 or 64 elements as expected. Also some “blob” dpes were left uninitialized. • This causes problems (even to delete the item) when the Alarm wizard panel is open in Browse mode • Problems also occurred when trying to rename such an item • Etc.

  7. Actions taken to deal with this situation • In script ActionListwe introduced checks to skip items for which .Definition.Locationis empty • In the wizard panels, when the item is open not in “Create” mode, if .Definition.Locationis empty all the functionalities are disabled apart from the “Delete” button. Now it will be possible to delete these items. • A simple panel to find and list all these “corrupted” items has been created and added to the Expert_Tools->Exceptional Maintenance toolkit.

More Related