LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a graph with more than one y variable, same x, with 64 bit real data, not in an array, with out clearing each time.

I want  to build a graph with more than one y variable, same x, with 64 bit real data, not in an array, with out clearing each time it updates, in order to track data while it is being collected. It'd be nice if the different y variables could be different colors too.

0 Kudos
Message 1 of 3
(2,589 Views)

Use a chart.

!1.png

Note I stacked the plots since they are identical so you can see them both easilly

 

The build arrays are only there to get the 2 scalars into a 1x2 dim array so the chart knows to put them in seperate plots.  You really need a 2D array to get multiple plots.Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(2,585 Views)

@masonsa3 wrote:

I want  to build a graph with more than one y variable, same x, with 64 bit real data, not in an array, with out clearing each time it updates, in order to track data while it is being collected. It'd be nice if the different y variables could be different colors too.


Don't put unreasonable conditions on the solution (e.g. "not in an array"). All that counts if that it results in the graph you want, right? We also don't really need to know what is "nice". We need to know what you want! Do you want different colors for each plot? That's even the default so you get that for free anyway! What are variables?

 

You leave out important information, for example:

 

  • Are the x-values spaced equally or randomly?
  • What is the maximum number of points? (eventually you will run out of memory if there is no upper bound).

Can you attach a simplified VI containing some typical simulated data?

 

The "build xy graph express VI" has an option to "retain data" between calls. Charts keep an internal history of fixed size. We really need more information before we can provide a solution.

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