Is there some MathScript commands or syntax that are allowed in the script window but no in script nodes? Code which appears after and if block seems to run as expected in a script window but not a script node. The following code works as expected in the script window if I define p and mode and then run it. However in a script node with p and mode as inputs, the assignements that take place after the if block appear to never happen.
To answer your question, all commands and syntax allowed in the MathScript Window are allowed in the MathScript node. MathScript support for the LabVIEW application builder is a new feature of LabVIEW 8.20. If you are building an application, there are certain functions that are not supported or whose behavior changes. For more information about these commands, search the LabVIEW help for "MathScript Functions Not Supported in the LabVIEW Run-Time Engine."
I am unable to duplicate the behavior you mention in LabVIEW 8.0 or 8.20. Can you try creating an error out indicator from the MathScript node to see if any errors are being reported? If there are no errors, could you post a simple VI that illustrates the behavior you are seeing?
Grant M. Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
I'm sorry. Apparently the problem was not the difference between the script node and the script window but the source of m input variables. It seems the ">" operator is not defined for integer data types and a quick typecast solves my problem.