Owning Class: programming
Requires: MathScript RT Module
return
Forces an early return to the caller. The function then stops executing. Functions typically return to the caller when LabVIEW reaches the end of normal execution.
If you call this function from a MathScript Node, LabVIEW operates with slower run-time performance for the MathScript Node. To optimize the performance of the MathScript Node, remove this function from scripts.
Save the following script as squareroot.m in the LabVIEW Data directory.
function value = squareroot(x)After you save squareroot.m, call the following commands in the LabVIEW MathScript Window or the MathScript Node.
squareroot(-8)