To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Coding that shows how we can zoom on a specific part of a waveform graph while it continues building the waveform.
Description
When plotting data that is the result of a calculation on a Waveform chart, you can see each data point plotted. It becomes difficult to reset the X axis to see a portion of the data a little closer. This is because each time a new data point is calculated and sent to the chart, the axis resets even if you have the auto scale off.
One way to change this is to defer the front panel updates until after the window to view has been set. However, if a time stamp is to be added to the calculated data, this first method will not work. For this, a few more steps need to be added. In the Graph window.vi example, a waveform is continually updated and a waveform graph with a shift register is used.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
1. Run the attached VI.
2. Set the window that you would like to view closer by entering a Min time and a Max time
3. Hit Zoom in to limited the viewable graph the time frame specified by the Min and Max time
4. Hit Zoom out to resume seeing all the data as it is 'calculated'
5. Hit Stop to step the example program.
Additional Information or References
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.