Add an event command to export the alarm history
Create an event command to export the alarm history to view the alarm states collected on the HMI device. When triggered on the HMI device, the event exports the entire alarm history in the
View Designer
project. Alarm history exports to a USB storage device or SD card as a .zip file for a PanelView
. The .zip file contains a .csv file. For a
PanelView
project, create an additional event to allow the safe removal of the removable media from the HMI device so that files on the media do not become corrupt.The valid destinations for a
View 5000 Server
project are locations on a local hard drive or a drive attached to a computer, such as a USB drive. Exporting to a networked drive location is not supported.Prerequisites
- Create an event to trigger the command:
- Touch press.Occurs when touching the item on the screen that is configured with the event.
- Touch release.Occurs when releasing the item on the screen that is configured with the event.
- Key press.Occurs when
- Key release.Occurs when releasing the specified key.
- Expand the
- Select the graphic element configured with the touch or key event.
- In thePropertiespane on theEventstab, selectAdd Command.
Alarm Historycategory and configure the command:- Export Alarm History. Creates and exports the alarm history in .csv format to a .zip file:
- In theDestinationbox of the command card, selectUSBorSD Cardfor aPanelViewproject.
- In theFileNamebox, type the name of the export .zip file for the alarm history.
- Cancel Alarm History Export.Cancels the export of the alarm history to the HMI device. No .zip file appears in the destination.TIP:
- Tip: Bind theFileNamebox of the Export Alarm History event command to a graphic element property or a tag in a controller. Binding the file name specifies the alarm history to export on the HMI device. For example, bind theFileNamebox of the Export Alarm History event command to the text property of Text Input graphic element. This displays the name of the alarm history on the Text Input graphic element that exports the alarm history from the HMI device.
- Exporting the same alarm history file to the same removable media creates a new export file each time. The file name increments by one. This may cause the USB storage device, SD card, or destination to reach capacity. For example, AlarmHistory_002 indicates a second instance of an exported alarm history named AlarmHistory.
- When the alarm history is exporting, theData ExporticonSystem Banner. If there is an error exporting the alarm history, theData Export ErroriconSystem Banner.
- Alarm history exports do not complete or create a .zip file on removable media if a ControlFLASH, reboot, or power cycle to the HMI device occurs during the export.
- The alarm history file contains alarms from all controllers.
Provide Feedback