03-16-2016 11:42 AM
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.
03-16-2016 11:47 AM
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.
03-16-2016 11:55 AM
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.
03-16-2016 11:57 AM - edited 03-16-2016 11:59 AM
@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??? 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).
03-16-2016 12:11 PM
THis place needs an un-kudo.
03-16-2016 12:14 PM
I do not have time for this, you even do not want to show us your VI. Good luck with your project, bye!
03-16-2016 01:27 PM
@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.