LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I overlay X Y Scatter plots that are generated at different times?

RE: Block

 

I am not confusing charts with plots.

 

I know what shift registers are. But I dont want to use them in this program with a lot going on, I dont need to clutter up my diagram.

 

I have one test that has a long amoung of time on the X Axis, thats already done.

 

I was looking for something elegant to write data to a scatter X-Y plot (which is why I called it an X-Y Scatter Plot) , let it auto scale, then come back later and begine overlaying a second scatter plot, with similar but not identicle  X Axis values.

 

I was hoping for something elegant.

0 Kudos
Message 11 of 17
(1,250 Views)

RE: Bilko,

 

I am thinking that starting a 2d array, or multiple arrays and populating it over time, letting it grow by using "insert into array" as each new point comes along. This means that there will be two other graphs along for the ride, as it auto grows. In effect the second and third graph will be along for the ride, populated by zeroes. That kills the autoscale. But I can live with that if I have to.

 

 

 

0 Kudos
Message 12 of 17
(1,247 Views)

alternative solution

 

I could use "Plot Multi-XY.vi" which presents an image for a graph. I found that i can use the plot output as a local variable, so it takes in its old graph and overlays the newest plots. It has to be initialized at the beginning.  I have never used this function and I didnt feel like fudging  around with something new like this because I am in a hurry.  But it has the advantage of keeping track of everything and letting me just overlay new points.

 

 

0 Kudos
Message 13 of 17
(1,243 Views)

@Shredderofmass2 wrote:

RE: Block

 

I am not confusing charts with plots.

 

I know what shift registers are. But I dont want to use them in this program with a lot going on, I dont need to clutter up my diagram.

 

I have one test that has a long amoung of time on the X Axis, thats already done.

 

I was looking for something elegant to write data to a scatter X-Y plot (which is why I called it an X-Y Scatter Plot) , let it auto scale, then come back later and begine overlaying a second scatter plot, with similar but not identicle  X Axis values.

 

I was hoping for something elegant.


To be honest I really do not understand what you do in your code. You said you do not want to use shift registers in your program, what??? Smiley Surprised I could not image a LV code without shift registers... (or feedback node, or a Functional Global Variable including shift registers). By the way, you say you "populate" points in the "Scatter plot", how can you do it without shift registers?

Actually there is NO "Scatter plot" in LabVIEW. There are Charts and Graphs.

It could help a lot if you showed us your VI. Then people could give you advice...

 

EDIT: you are clearly overcomplicating things. Show us you VI, or an example reduced (only keep the relevant elements).

Message 14 of 17
(1,241 Views)

THis place needs an un-kudo.

0 Kudos
Message 15 of 17
(1,233 Views)

I do not have time for this, you even do not want to show us your VI. Good luck with your project, bye!

0 Kudos
Message 16 of 17
(1,224 Views)

@Shredderofmass2 wrote:

RE: Block

 

I am not confusing charts with plots.

 

I know what shift registers are. But I dont want to use them in this program with a lot going on, I dont need to clutter up my diagram.

 

I have one test that has a long amoung of time on the X Axis, thats already done.

 

I was looking for something elegant to write data to a scatter X-Y plot (which is why I called it an X-Y Scatter Plot) , let it auto scale, then come back later and begine overlaying a second scatter plot, with similar but not identicle  X Axis values.

 

I was hoping for something elegant.


Well like my dad used to say "Hope in one hand and **bleep** in the other and see which one fills up first".

 

Here is how I do three different regulation and efficiency plots on one chart.

 

effe.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 17 of 17
(1,203 Views)