Example Code

XY Graph Zoom 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

1. Overview:
This VI allows the user perform a zoom over XY Graph. At the same time, it returns the boundaries of the selected area and allows the user print the selected graph and create a CSV with the array values within the selected area


2. Description: 

This example allows the user to interactively zoom a part of a XY graph, print the selected area and save the data inside the area in a CSV file. In order to implement this, the state machine design patter is used. After resetting all the values to their default values, the state machines waits for an user interface event (Zoom, Print, Save to CSV or Stop) and handles each event using the event structure. Check array boundaries subVI checks the boundaries of the selected area.

 

3. Requirements

  • LabVIEW 2012 (or compatible)

4. Steps to Implement or Execute Code

  1. Open XY graph zoom LabVIEW 2012 NI Verified.llb
  2. Open XY graph zoom LV2012 NI Verified.vi
  3. Run the VI
  4. Put the cursor over the graph and select an area to be zoomed
  5. Select Print, Save to csv or Stop

5. Additional Information or References

 VI Front Panel

 Front Panel.JPG 


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

 

 

Regards,


Imtiaz Chowdhury
Project Manager
Green Running / Austin Consultants

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

Comments
jjalbiter
Member
Member
on

Excelente aplicación, sobre todo para realizar análisis y procesamiento de señales.

Muchas gracias por el aporte.

hohensteinit
Member
Member
on

Great. That's what I've been looking for. It's very usable. THANKS !