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

¿Cómo puedo hacer mi Waveform chart y/o graph dando un clic sobre la misma en 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 VI exemplifies a way to increase the size of a Waveform indicator responding to user events.


Description:

This VI uses the Mouse Down event to increase the size of a waveform indicator adjusting it to the pane size. It also uses a "Restore" button "Value Change" event to restore the original size of the indicator. This action could be really helpful to show just the desired graph to the user and provide more details depending on the situation. This could also be applying to other kinds of indicators and controls.


Requirements:
LabVIEW Base Development System 2012 (or compatible).


Steps to Implement or Execute Code:
1. Open the attached VI "Expand Graphs LV 2012 - NI Verified.vi".
2. Run the VI.
3. Click over any of the four waveform indicators to increase its size.
4. Click the "Restore" button to return the waveform indicator to its original indicator.


Additional Information or References: 

 Snippet 4790.png

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

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