An IzoT application follows the order of initialization phase, runtime phase, and shutdown phase. To create your IzoT application, create a single Framework object, and then call the app_start(). You must call the app.stop() method before the application object goes out of scope.
The Application object namestyle property accepts valid values of "v1" and "v2". The default is "v2".
The namestyle selection affects the generation of external names for datapoints, as reported in the interface file (XIF) and the device's self-identification data.
- namestyle "v1" yields names that are compatible with earlier releases of IzoT SDK and the tools that use it
- namestyle "v2" yields names that meet IzoT CT expectations, which results in a cleaner user interface when using automatically-generated datapoint names in a drawing
Possible API errors that may raised include:
- #2019 indicating "unknown namestyle"
- #2020 indicating "no unique name," when a unique external name cannot be found for a given datapoint
block factory Method
The block() factory method supports two optional arguments: elements and element.
The elements and element values can be supplied to indicate that this block implements an element in a block array of elements items at zero-based index element.
While this information is optional, it helps guide the generation of external names for block member datapoints when namestyle "v2" is selected.