Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

evalscript (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: basic

Requires: MathScript RT Module

Syntax

b = evalscript(a)

Legacy Name: evalc

Description

Executes scripts in a string and returns the output from the Command Window in character array b.

Details

Examples

Inputs

Name Description
a Specifies the scripts you want LabVIEW to execute. a is a string.

Outputs

Name Description
b Returns a character array that contains the output from the Command Window.

Details

If you call this function from a MathScript Node or a user-defined function, a warning glyph appears in the MathScript Node next to the line from which you call the function. The warning glyph indicates that LabVIEW operates with reduced error checking and slower run-time performance for the MathScript Node. To improve the error checking and optimize the performance of the MathScript Node, remove this function from scripts and user-defined functions. Also, do not change the MathScript search path list at run time. Instead, use the MathScript page of the Options dialog box to configure the default search path list for MathScript Nodes in the main application instance.

This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.

Examples

b = evalscript('sin(1:10)')

Related Topics

eval
sin


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit