LabVIEW将.NET属性、方法和构造器参数的数据类型转换为LabVIEW数据类型,从而使得LabVIEW可以读取和解析这些数据。LabVIEW将不能转换的数据类型显示为.NET引用句柄。

下表列出了支持的.NET Framework数据类型以及相应的LabVIEW数据类型。

表 2. 支持的.NET Framework数据类型和相应的LabVIEW数据类型
支持的.NET Framework类型 LabVIEW类型
System.Int64, System.UInt64, System.Int32, System.UInt32, System.Int16, System.UInt16 LabVIEW control terminal representing a 64-bit signed integer numeric data type., LabVIEW control terminal representing a 64-bit unsigned integer numeric data type., LabVIEW control terminal representing a 32-bit signed integer numeric data type., LabVIEW control terminal representing a 32-bit unsigned integer numeric data type., LabVIEW control terminal representing a 16-bit signed integer numeric data type., LabVIEW control terminal representing a 16-bit unsigned integer numeric data type.
System.String LabVIEW control terminal representing a string data type.
System.Boolean LabVIEW control terminal representing a Boolean data type.
System.Byte, System.Char, System.UByte LabVIEW control terminal representing an 8-bit unsigned integer numeric data type.
System.Single, System.Double, System.Decimal LabVIEW control terminal representing double-precision floating-point data type.
System.Array 显示为相应类型的数组
Enumeration 显示为相应类型的带整数值的下拉列表控件、常量或显示控件。
DateTime LabVIEW control terminal representing a <64.64>-bit time stamp data type.
任何其他.NET Framework对象 LabVIEW control terminal representing a reference number data type.

下表列出了支持的.NET 8.0 (Core)数据类型以及相应的LabVIEW数据类型。

表 3. 支持的.NET 8.0 (Core)数据类型和相应的LabVIEW数据类型
支持的.NET 8.0 (Core)类型 LabVIEW类型
System.Int64, System.UInt64, System.Int32, System.UInt32, System.Int16, System.UInt16 LabVIEW control terminal representing a 64-bit signed integer numeric data type., LabVIEW control terminal representing a 64-bit unsigned integer numeric data type., LabVIEW control terminal representing a 32-bit signed integer numeric data type., LabVIEW control terminal representing a 32-bit unsigned integer numeric data type., LabVIEW control terminal representing a 16-bit signed integer numeric data type., LabVIEW control terminal representing a 16-bit unsigned integer numeric data type.
System.String LabVIEW control terminal representing a string data type.
System.Boolean LabVIEW control terminal representing a Boolean data type.
System.Byte,System.Char LabVIEW control terminal representing an 8-bit unsigned integer numeric data type.
System.Single,System.Double LabVIEW control terminal representing double-precision floating-point data type.
System.Array 显示为相应类型的数组
其他.NET 8.0 (Core)对象 LabVIEW control terminal representing a reference number data type.