AddType

<< Click to Display Table of Contents >>

 

AddType

AddType([Name], [Phase], [Caption], [Unit], [Order], [EuLow], [EuHigh])

Adds an Analog Measurement Type object with the name informed in the Name parameter in the collection of Analog Measurement Types. If the informed name already exists in the collection or is omitted, it is auto-incremented. This name cannot start with the reserved character of an asterisk (*). Please check the general Name property for more information about the allowed characters on the names of objects. The Phase parameter indicates the electrical phase for the Analog Measurement Type. This parameter is optional and, if omitted, configures the electrical phase with the value -1 (minus one, epNone). The Caption parameter informs a description for the Analog Measurement Type. This parameter is optional and, if omitted, configures the description as an empty String. The Unit parameter informs a unit for the Analog Measurement Type. This parameter is optional and, if omitted, configures the unit as an empty String. The Order parameter informs a viewing order for the Analog Measurement Type, used to sort Analog Measurements on lists. This parameter is optional and, if omitted, configures the viewing order with the value 1000. The EuLow parameter indicates the minimum value of the engineering unit of an Analog Measurement Type. This parameter is optional and, if omitted, configures the minimum value of the engineering unit in 0 (zero). The EuHigh parameter indicates the maximum value of the engineering unit of an Analog Measurement Type. This parameter is optional and, if omitted, configures the maximum value of the engineering unit in 100.

This method returns an Analog Measurement Type object if successful.

Was this page useful?