Cannot Plot XY Graph Correctly In TestStand

Updated Oct 25, 2024

Reported In

Software

  • TestStand

Issue Details

  • I am using TestStand to load the XY graph from LabVIEW. However, I cannot obtain the correct graph plot in TestStand. How should I do?

  • In LabVIEW, my XY graph is shown as below:

    XY Graph in LabVIEW.PNG

    However, when I follow the steps in Plotting Multiplot Graphs in TestStand Report , my TestStand report result for XY Graph is divided into two different graphs.

    XY Graph in TestStand.PNG

    What should I do to combine them together and make sure the graph is shown as that in LabVIEW?

Solution

In order to properly display the XY Graph in the TestStand report, you should use 2D Waveform Graph in LabVIEW. This is because the XY Graph in TestStand is classified as a container type with two 1D array elements. The X-axis and Y-axis values will be saved separately in the TestStand container and thus result in two different graphs. By using 2D Waveform Graph, the result is saved in 2D array in TestStand.

In some consequences, when using 2D Waveform Graph to display XY Graph in the TestStand report, you may get an incorrect result also. You may try to click Refresh in the TestStand report (as shown below) to refresh the plotted graph so that you can obtain the correct XY graph.
Refresh button.png

Additional Information

Even though the waveform graph in LabVIEW is not displaying the expected result as that from the XY graph, when executing the TestStand report with the reference steps from Plotting Multiplot Graphs in TestStand Report, you can obtain the correct XY Graph in TestStand report as that shown in LabVIEW. This is because the X-axis in LabVIEW waveform graph is dependent on the changes of the X or delta X. The values which should be the elements of X-axis is detected as a single plot in waveform graph.

Below is one of the example code in LabVIEW on the difference between XY Graph and Waveform Graph in LabVIEW:LabVIEW code and Graphs.PNG

For more information regarding the difference between the waveform graph and XY graph in LabVIEW, you may read through Types of Graphs and Charts - LabVIEW Help .