Reporting alarm data > Working with reports externally

Create a new report from an external application

  1. Open a command prompt.
  2. Enter the mandatory parameters: DeltaV\bin>SAMAlarmReports.exe <reportfilepath> <reporttype>, where
    • <reportfilepath> is the location and file name for the report.
    • <reporttype> is runtime or difference.
  3. Enter the optional parameters for the filters you want to include in the report.
    • [/enabledalarms]
    • [/processalarms]
    • [/sisalarms]
    • [/node:]<nodename>
    • [/logicsolver:]<logicsolver_name>
    • [/area:]<area_name>
    • [/unit:]<unit_name>
    • [/module:]<module_name>
    Note

    Only one of each item type (area, node, logic solver, unit, or module) can be specified when creating a new report from a command line. To include more than one type of a specific item in a report, such as multiple areas or multiple modules, the report must first be created in System Alarm Management and the multiple items specified in the Add items dialog. Then the report can be run from a command line.

  4. Press Enter.
An HTML file and an XML file are created and stored in the specified file path.

The following examples illustrate the correct syntax for creating a new report with the specified conditions.

Example: New report 1

Conditions for the report:
  • File path: c:\DeltaV\DVData\AlarmReports
  • Report name: Shift Report.xml
  • Report type: runtime
  • Optional filter: all enabled alarms
  • Optional filter: all alarms in Area_A
Enter

c:\deltav\bin>SAMAlarmReports.exe "c:\deltav\dvdata\alarmreports\Shift Report.xml" runtime /enabledalarms /area:area_a

Example: New report 2

Conditions for the report:
  • File path: c:\DeltaV\DVData\AlarmReports
  • Report name: Shift Report 2.xml
  • Report type: difference
  • Optional filter: all enabled alarms
  • Optional filter: all process alarms
  • Optional filter: all alarms in CTRL_1

c:\deltav\bin>SAMAlarmReports.exe "c:\deltav\dvdata\alarmreports\Shift Report 2.xml" difference /enabledalarms /processalarms /module:ctrl_1