LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display 4 Quadrants in XY Graph

Solved!
Go to solution

Hello Engineers,

 

My application needs to extract some of data from raw data that is acquired from a data acquisition device and displays the data in a x-y graph. I am able to extract the data, however, I am not able to display the extracted data in a x-y graph in a case structure. The raw data can be displayed in a while loop. 

 

I prepared two VIs similar to my application and attached them here below, one is to graph random data as a function of time(XYgraph_A.vi), another is to graph only the random number greater than 0.5 as a function of time when the random number is generated (XY graph_B.vi).

 

I searched for an answer on the forum and found one that is close, it is "Display 4 Quadrants in XY Graph LV2012 NI Verified.VI", but I have difficulty to understand it. I am not able to figure out how to pass my X-Y data to the graph data array. 

 

Could some one help?

Thanks,

Gu

 

  

Download All
0 Kudos
Message 1 of 3
(2,503 Views)
Solution
Accepted by topic author edmonton

Hi edmonton,

 

I am not able to display the extracted data in a x-y graph in a case structure.

The problem is not with the graph or how you create the plot for the graph.

The problem is how you collect your data in the case structure!

 

You should not use InsertIntoArray when you want to prepend/append new elements to an array: use BuildArray whenever possible!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,464 Views)

Hi GerdW,

Thanks a lot. The issue has been resolved by following your suggestion.

 

GuHeart

0 Kudos
Message 3 of 3
(2,448 Views)