Develop a solution for importing objects
This design-time script creates objects in the project based on the data from a CSV file.
Prerequisites
In the following example, the CSV file contains information about alarms and model variables used by these alarms.
variable,var1,boolean
variable,var2,uint32
alarm,alarm1,digital,var
alarm,alarm2,analog,var2
#1 column |
#2 column |
#3 column |
#4 column |
---|---|---|---|
Indicates whether you need to create a project variable (keyword |
Indicates the name of the node to be created. |
Indicates the datatype to use to create the variable:
|
Indicates the variable to point the alarm to. |
Tip: The CSV file is a part of the sample project. You can also download the CSV file individually from: ../../../common-content/../downloads/alarms.csv
To develop the project
- Create the AlarmImporter NetLogic.
- Configure the AlarmImporter NetLogic.
- Save the project.