Converter

Converts an input to an output of another type. The following types are supported: Analog port, Digital port, String port, String vector port, Double vector port and Double matrix port.

The following rules apply when converting, (the columns indicate inputs and the rows indicate outputs):

DoubleBooleanStringDouble vectorDouble matrixString vector
DoubleNo conversionIf the boolean is true the double value becomes 1.0, else the double value is 0.0The string input must be in a non-localized format for it to be able to convert to a double. If conversion fails, the element value becomes NaN.The first element is chosen.The first element in the first row is chosen.The first element is chosen, and that string must be in a non-localized format. If conversion fails, the element value becomes NaN.
BooleanIf the double value is larger than 0.0 the boolean value becomes true, else the value becomes false.No conversionIf the string value is true (ignoring case) the boolean becomes true, otherwise false.The first element is chosen. If the double value is larger than 0.0 the boolean value becomes true, else the value becomes false.The first element in the first row is chosen. If the double value is larger than 0.0 the boolean value becomes true, else the value becomes false.The first element is chosen. If the string value is true (ignoring case) the boolean becomes true, otherwise false.
StringThe string value becomes the textual non-localized value.The string value becomes true if the boolean is true, other wise it becomes false.No conversionThe first element is chosen. The string value becomes the textual non-localized value.The first element in the first row is chosen. The string value becomes the textual non-localized value.The first element is chosen.
Double vectorThe size of the double vector becomes 1 and the element value is equal to the input.The double vector becomes size 1 and if the boolean is true the element value becomes 1.0, else the element value is 0.0.The double vector becomes size 1 and if the string input is in a non-localized format it is converted to a double. If conversion fails, the element value becomes NaN.No conversionThe size of the double vector becomes rows * columns and the values of the matrix are inserted column first.The size of the double vector will be equal to the size of the string vector and the values of the vector are converted from the string values. The string values must be in a non-localized format. If the conversion fails the element value becomes NaN.
Double matrixThe double matrix will contain one row and one column. The element value is equal to the input.The double matrix will contain one row and one column. If the boolean is true the element value becomes 1.0, else the element value is 0.0.The double matrix will contain one row and one column. The string input must be in a non-localized format for it to be able to convert to a double. If conversion fail the element value becomes NaN.The double matrix will contain as many rows as there are elements in the vector and one column.No conversionThe double matrix will contain as many rows as there are elements in the vector and one column. The string values must be in a non-localized format. If the conversion fails the element value becomes NaN.
String vectorThe size of the string vector becomes 1 and the element value becomes the textual non-localized value.The size of the string vector becomes 1 and the element value becomes true if the boolean is true, otherwise it becomes false.The size of the string vector becomes 1 and the element value equal to the input.The size of the string vector will be equal to the size of the double vector and the values of the vector are converted from the double values using a non-localized format.The size of the string vector becomes rows * columns and the values of the vector are converted from the double values using a non-localized format.No conversion