From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Plot Attributes with Mathscript in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW MathScript RT Module
  • LabVIEW

Code and Documents

Attachment

Overview
This VI calls a MathScript Node to generate a list of 100 random numbers between 1 and 10 and plot.

Description
This VI calls a MathScript Node to generate a list of 100 random numbers between 1 and 10. We then change the plot attributes to make the plot green and have a -. pattern.  The plot is also designed to open up in a new window when run.

Requirements

  • LabVIEW 2013 (or compatible).
  • LabVIEW MathScript RT Module.


Steps to Implement or Execute Code

1. Run the VI.
2. The plot attributes are green color and have a -. pattern.  The plot is also designed to open up in a new window when run.

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Joel I.
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.