Hello Sreenivasulu,
The LabVIEW MathScript syntax is similar to The MathWorks, Inc. MATLAB® language syntax. In LabVIEW MathScript, you generally can execute scripts written in the MATLAB language syntax. However, the MathScript engine executes the scripts, and the MathScript engine does not support some functions that the MATLAB software supports.
You can find the MathScript node on the Programming >> Structures palette. If your .m file is a function, place it in your "My Documents\LabVIEW Data" directory. You mentioned you are using LabVIEW 8.2. You can change the search path by using the "path" command. In LabVIEW 8.5, view the LabVIEW help topic "MathScript: Search Paths Options Page" for more information on how to change the default search path. Now you can call your function from the MathScript node. If your .m file is a script, you can place it in the same folder location, or you can use the code directly in the MathScript node. To do the latter, right-click on the MathScript node and select Import.
MATLAB® is a registered trademark of The MathWorks, Inc.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments