Different Methods for Representing Data on an XY Graph 您所在的位置:网站首页 labview实时显示曲线 Different Methods for Representing Data on an XY Graph

Different Methods for Representing Data on an XY Graph

2024-05-02 20:20| 来源: 网络整理| 查看: 265

SolutionThere are several strategies to accomplish this. Generally, a Waveform Chart or Graph can be used to display continuous data; however, if you would like to use the XY graph, the goal is to get your data into the same format. The required data format can be seen through context help by pressing Ctrl-H聽and hovering your mouse over the input terminal of the XY graph. 聽 Shown below are four different strategies for displaying the data:聽 Collect all the data into a single array using a For Loop and display the data on the XY graph in a single snapshot.

聽Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram. 聽

Save the information into an array that continuously updates, and continuously refresh the XY display.

聽Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

Represent each XY data point in a cluster. Then, create an array of these clusters to represent an entire data set. This method makes it possible to display multiple data sets on a single XY graph. 聽

聽Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram. 聽

Use a case statement in the while loop so that you can update the arrays of information in the same while loop, but at separate points in time. This method makes it possible to plot multiple data sets on a single XY graph, but at separate times.

聽Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

By using the build array function before bundling, the value constant is converted into an array with just one number. Two of these single number arrays can then be bundled together to create a single XY point data, ready for the XY graph to accept.聽 聽Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.聽

If you want to plot two Waveform聽on an X-Y graph using NXG you can do it as shown in the Snippet below.聽First, the two Sine Waveform functions generate聽two Sine waves, then the Waveform properties function gets the Y values of these waves and put them in a 1 dimensional array.聽The build cluster function will then create a cluster of these two arrays, the first array includes聽the X values and the second one includes the Y values.

聽Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有