Example Code

Simulate a Paper Plotter 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

Code and Documents

Attachment

Download All

Overview
This code shows how you might simulate a paper plotter with the ability to "change pens".

 

Description
This lets you stop and start again, change colors of your points and save each data file separately. The user interface is event based and there is a parallel loop that keeps the graph updated. I generally try to avoid the use of variables but since this is a low-speed application and the variables are only being read by the update loop, it is an appropriate use of the local variable.

 

Requirements
LabVIEW Base Development System (or compatible)

 

Steps to Implement or Execute Code
1. Run VI. "Start Plotting" button, a choice of plot colors, and pressure set point selector switch become available.
2. Choose a current for max pressure set point "0mA", "500mA", "1.0A", "1.5A", or "2.0A"
3. Click "Start Plotting" and moves over to the pump to manually raise system pressure.
4. Select "Stop Plotting" to finish plotting.
5. Select if data is going to be saved.
6. Click "Exit" to finish execution.

Additional Information or References
Capture.PNG

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

Dustin D

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