LabVIEW MathScript Example Gallery

Publish Date: Nov 29, 2018 | 11 Ratings | 4.36 out of 5 | Print

Overview

This site contains a multitude of LabVIEW MathScript examples. These examples explore some of the features and functions of LabVIEW MathScript. They also demonstrate the integration of textual MathScript .m file script programming with LabVIEW graphical dataflow programming. Please visit www.ni.com/mathscript for more information on LabVIEW MathScript.

Note: Some of these examples include .m files with the relevant algorithm. However, the MathScript Node in the example VIs below should already have the proper m-file script loaded.

Table of Contents

  1. NI Example Code
  2. Application Notes and Tutorials
  3. Technical Presentations

1. NI Example Code

  • Smoothing Algorithm using MathScript: Using this example, you can interactively change a text-based smoothing algorithm and observe its effects. A noisy signal is generated and passed through a MathScript Node with the smoothing algorithm loaded. The results are viewable on the interactive LabVIEW front panel in 3D graphs.
To view a demonstration of this example, view the MathScript Node Demo.
  • Amplitude Modulation (AM) using MathScript: In this example, a carrier signal and message signal are amplitude modulated to create an AM signal, using MathScript. The phase and frequency of the carrier and message signals can be modified on the fly, while the resulting AM signal is updated immediately.
You can also change the modulation index and see its effects on the modulated signal to give you a better understanding of this modulation technique.
  • Exponential Decay (Signal Reshaping) using MathScript: This example synthesizes a sine wave using a LabVIEW Express VI. The generated signal is then reshaped by multiplying it by a decaying exponential using a MathScript Node. This is similar to fading an acquired audio signal. Also, interactive cursors and annotation features of LabVIEW graphs are explored.

Back to Top

2. Application Notes and Tutorials

Back to Top

3. Technical Presentations


Back to Top

Bookmark & Share


Ratings

Rate this document

Answered Your Question?
Yes No

Submit