Math script

Solo disponible en BuenasTareas
  • Páginas : 31 (7624 palabras )
  • Descarga(s) : 0
  • Publicado : 27 de febrero de 2012
Leer documento completo
Vista previa del texto
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics

LabVIEW MathScript
HANS-PETTER HALVORSEN, 2011.02.11

Faculty of Technology, Postboks 203, Kjølnes ring 56, N-3901 Porsgrunn, Norway. Tel: +47 35 57 50 00 Fax: +47 35 57 54 01

Preface
This document explains the basic concepts of using LabVIEW MathScript. For more information aboutLabVIEW, visit my Blog: http://home.hit.no/~hansha/ What is LabVIEW? LabVIEW (short for Laboratory Virtual Instrumentation Engineering Workbench) is a platform and development environment for a visual programming language from National Instruments. The graphical language is named "G". What is MATLAB? MATLAB is a tool for technical computing, computation and visualization in an integratedenvironment. MATLAB is an abbreviation for MATrix LABoratory, so it is well suited for matrix manipulation and problem solving related to Linear Algebra. MATLAB offers lots of additional Toolboxes for different areas such as Control Design, Image Processing, Digital Signal Processing, etc. What is MathScript? MathScript is a high-level, text- based programming language. MathScript includes more than 800built-in functions and the syntax is similar to MATLAB. You may also create custom-made m-file like you do in MATLAB. MathScript is an add-on module to LabVIEW but you don’t need to know LabVIEW programming in order to use MathScript. If you want to integrate MathScript functions (built-in or custom-made m-files) as part of a LabVIEW application and combine graphical and textual programming, youcan work with the MathScript Node. In addition to the MathScript built-in functions, different add-on modules and toolkits installs additional functions. The LabVIEW Control Design and Simulation Module and LabVIEW Digital Filter Design Toolkit install lots of additional functions. You can more information about MathScript here: http://www.ni.com/labview/mathscript.htm

How do you start usingMathScript? You need to install LabVIEW and the LabVIEW MathScript RT Module. When necessary software is installed, start MathScript by open LabVIEW:

ii

In the Getting Started window, select Tools -> MathScript Window...:

Table of ContentsPreface......................................................................................................................................................ii Table of Contents .................................................................................................................................... iv 1 Introduction to LabVIEW ................................................................................................................ 1 1.1 1.2 1.3 1.4 2 3 Dataflow programming........................................................................................................... 1 Graphical programming........................................................................................................... 1 Benefits.................................................................................................................................... 2 LabVIEW MathScript RT Module............................................................................................. 2

LabVIEW MathScript RT Module .................................................................................................... 3 LabVIEW MathScript ....................................................................................................................... 4 3.1 3.2 3.3 3.4 Introduction............................................................................................................................. 4 Help ......................................................................................................................................... 6 Examples.................................................................................................................................. 6 Useful commands...
tracking img