If a syntax error occurs, make sure the syntax is correct and the expression uses operators correctly. You also can click the broken Run button to see the error listing. For each error, LabVIEW displays a portion of the formula or expression with a # symbol marking the point at which the node detected the error.
The Formula and Expression Nodes generate the following error messages.
| Name | Description |
|---|---|
| array indexing expected | You incompletely referenced an array. For example, you must supply two index terms when you reference an element in a two-dimensional array. |
| array operation not allowed here | You cannot operate on an array in the node text. |
| array type required | You must define the data type of the array elements when you declare an array. |
| assignment not allowed in expression node | You cannot assign a value to a variable in an Expression Node. |
| case select value not unique | Case statements must contain unique case select values. |
| decrement operator not allowed in expression node | You cannot use the decrement operator (--) in an Expression Node. |
| error in add expression | An addition (+) or subtraction (-) expression contains an error. |
| error in and expression | A logical and (&&) expression contains an error. |
| error in bit-and expression | A bit and (&) expression contains an error. |
| error in bit-or expression | A bit or (|) expression contains an error. |
| error in comparison expression | A logical comparison expression contains an error. |
| error in equality expression | A logical equality (==) expression contains an error. |
| error in exclusive-or expression | A bit exclusive or (^) expression contains an error. |
| error in exponent expression | An exponentiation (**) expression contains an error. |
| error in expression | The expression contains a syntax error. |
| error in multiply expression | A multiplication (*) or division (/) expression contains an error. |
| error in or expression | A logical or (||) expression contains an error. |
| error in shift expression | An arithmetic shift (>> or <<) expression contains an error. |
| error in statement | The formula statement contains a syntax error. |
| error in unary expression | A unary expression contains an error. |
| identifier expected | The node expects an identifier. |
| illegal break | A break statement is valid only within a loop or switch case. |
| illegal continue | A continue statement is valid only within a loop. |
| increment operator not allowed in expression node | You cannot use the increment operator (++) in an Expression Node. |
| index list expected | You must follow an array reference with a list of scalar values enclosed in brackets. |
| input is referenced by different names | You can reference only one variable in an Expression Node. Use a Formula Node to refer to multiple inputs. |
| integer constant required | An integer constant is required. |
| integer type required | The node requires an integer. |
| keyword while expected | The node expects a while keyword in a do while statement. |
| missing colon | A conditional ternary operator or case statement does not have a colon. |
| missing left bracket | You must follow an array declaration with a list of indexes. |
| missing left parenthesis | A statement does not have a required left parenthesis. |
| missing right parenthesis | A left parenthesis does not have a matching right parenthesis. |
| missing semicolon | The node expects the end of a statement. |
| operator expected | The node expects an operator. |
| right brace required | A left brace does not have a matching right brace. |
| semicolon not allowed in expression node | You cannot use semicolons in Expression Nodes. You can use only single expressions in Expression Nodes. |
| single expression only allowed in expression node | You can use only single expressions in Expression Nodes. Use a Formula Node to create multiple expressions. |
| structured statements are not allowed in expression node | You cannot use structured statements such as if then or do while in an Expression Node. |
| too few arguments | A function does not have some required arguments. |
| too many arguments | A function has too many arguments. |
| type declarations not allowed in expression node | You cannot declare a type in an Expression Node. |
| undefined function | The specified function is not defined. |
| undefined variable | You referenced an undefined variable. |
| variable already defined | You attempted to declare a variable that already exists. |
| variable expected | You must follow the increment (++) and decrement (--) operators with a variable name in a Formula node. |