InformationModel.MakeVariableType<T>(browseName, dataTypeId, arrayDimensions)
Create a project variable type derived from the type indicated by the supertype that contains the data type indicated by the
dataTypeId
argument. Create a specific array with the optional arrayDimensions
argument.static T MakeVariableType<T>(QualifiedNamebrowseName, NodeIddataTypeId, uint[]arrayDimensions);
Arguments
- T
- IUAVariableTypeC# class, corresponding to the C# object class to return.
- browseName(QualifiedName)
- TheBrowseNameof the new variable type.
- dataTypeId(NodeId)
- The Data type contained in the new variable.TIP: A node inside theDataTypesclass represents the Data type. For example,OpcUa.DataTypes.Boolean.
- arrayDimensions(uint[ ])
- Optional. The size of the Array.
Returns
- IUAVariableType
- A C# object matching the project variable type created.
Example
var myCustomTagType = InformationModel.MakeVariableType<FTOptix.CoDeSys.TagType>("CustomCoDeSysTagType", FTOptix.CoDeSys.VariableTypes.Tag, OpcUa.DataTypes.UInt16);
Provide Feedback