Is there an easy way to create multiple tags with an associated alarm? I’ve thought at 3 possible ways:
- Do it one at the time:
Handly create a tag and set the alarm, but if I have to create 200 alarms it will be an insane waste of time.
- Export in an .xml file:
I can create a tag as I want, then export it in an .xml file ( only .xml because the .csv does not support the alarm properties),
open it with Notepad++, copy / paste the “code” and manually modify the right line. Even this will be an insane waste of time.
I can create a DB table with x column where x is the number of dynamic properties I need. ( for example: Tag_Name, OPC_Path, Alarm_Name, and so on ) Create a script where I do a SELECT query for read all the data and put them into List ( one List for every column), use the function system.tag.addTag(“the right configuration”)giving it the Lists as a dynamic array and finally put all of this inside a loop. Well, I found this very obsolete for being in 2017 ( almost 2018 ).