The following table shows LabVIEW data types and the corresponding data types in the MATLAB® software. (MathScript RT Module) This table also shows the corresponding LabVIEW MathScript data types. You can change the data type of an input or output terminal on a script node.
LabVIEW Data Type | MATLAB® Script Node Data Type | MathScript Node Data Type |
---|---|---|
Real | Scalar»DBL | |
Complex | Scalar»CDB | |
1-D Array of Real | 1D-Array»DBL 1D | |
1-D Array of Complex | 1D-Array»CDB 1D | |
2-D Array of Real | Matrix»Real Matrix (2D only) | |
2-D Array of Complex | Matrix»Complex Matrix (2D only) | |
String | Scalar»String | |
Path | N/A | |
N/A | 1D-Array»String 1D |
![]() |
Note MathScript represents strings internally as arrays of the corresponding ASCII character codes. |
The MATLAB script node and the MathScript Node handle 1D array inputs only by row. To change the orientation of a 1D array from row to column or column to row, transpose the array before you perform operations on elements of the array.
Use the Conversion VIs and functions or the Path/Array/String Conversion functions to convert a LabVIEW data type to a data type that the MathScript RT Module or the MATLAB software supports.