---
title: "12.2.2.1 Subroutines for Alarm"
canonical: "https://manual.cimon.com/space/CCANVAS/4317741147/12.2.2.1%20Subroutines%20for%20Alarm"
format: markdown
---
|  |  |
| --- | --- |
| alarm.createAllCsv | Saves all the alarm messages as a CSV file. |
| Subroutine | alarm.createAllCsv(***Storage type***); |
| Description | Saves all the messages at the assigned ***Storage type ***as a CSV.<br>Enter either the number or string shown below as the user’s declared ***Storage type***.<br>1: Storage.Local<br>2: Storage.Usb<br>3: Storage.SdCard |
| Examples | Saves all alarm contents in SD/MMC.<br>alarm.createAllCsv(3);<br>Saves all alarm contents in USB flash drive.<br>alarm.createAllCsv(Storage.Usb); |

|  |  |
| --- | --- |
| alarm.createCsv | Saves all the alarm messages associated with the ***String label*** parameter as a CSV file. |
| Subroutine | alarm.createCsv(***String label***, ***Storage type***) |
| Description | Saves all the alarm messages associated with the ***String label*** at the assigned ***Storage type ***as a CSV.<br>***String label *** refers to one of the following labels in the below image. Users can create their own labels, or use a preset label.<br>![image](media://4b73889f-0e47-4ea3-ab16-df143135066a)<br>Enter either the number or string shown below as the user’s declared ***Storage type***.<br>1: Storage.Local<br>2: Storage.Usb<br>3: Storage.SdCard |
| Example | Saves all alarm contents associated with Level 4 in SD/MMC.<br>alarm.createCsv(Level 4, 3);<br>Saves all alarm contents associated with Group J in USB flash drive.<br>alarm.createCsv(Group J, Storage.Usb); |