07-08-2019 09:29 PM
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
Solved! Go to Solution.
07-09-2019 03:15 AM - edited 07-09-2019 03:17 AM
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!
07-09-2019 10:47 AM
Hi GerdW,
Thanks a lot. The issue has been resolved by following your suggestion.
Gu![]()