|Download Help (Windows Only)|
Parent Topic: Creating a New Process
Processes often need to transfer data from iteration to iteration between message-handling subdiagrams. The process VI template provides a configuration cluster for this purpose. This cluster can store configuration properties set in NI InsightCM Server and applied to the device when a user saves changes to the configuration. You can populate the cluster with configuration properties in the Initialize subdiagram of the process VI.
Create the following block diagram to read from configuration files, filter properties for elements, and bundle the properties into the configuration cluster. Customize the gray section for your unique programming goals.
|Read properties from configuration JSON files stored on the device. The Get Device Model VI returns the contents of the entire device model. Other Global Configuration VIs read and return properties for alarm rules, the equipment hierarchy that is defined in the InsightCM web application, and so on.|
|Return configuration information for only the channels in a specific data group. You often need to filter the contents of configuration files because they consist of clusters with many elements or arrays of clusters. Use the Device Helper VIs to filter configuration files for elements.|
|From each channel configuration, read a specific property and use its value to determine whether to add the data group name to the configuration cluster. Some configuration properties are formatted as key-value pairs rather than as named elements. Use the Property Helpers VIs to parse key-value properties.|
|Bundle the array of data group names into the configuration cluster. Modify the config.ctl type definition in the project library for the process so it contains all the elements that the process needs to access in any subdiagram.|