LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

copy 3D graph into other 3D graph

Hello,
I have a 3Dgraph(ActiveX) and I want to copy the data inside to other 3DGraph, but I don't know how. You can say I can replot the second graph with the data I've ploted in the first one, but calculate all XYZ coordinates is time-consuming operation, so I think it would be better to copy the data directly from the graph.
Is there a solution?
I made a simple example to demonstrate the way I tried....
Thank you all for help.

I'm using LW 7.1
LV 2011, Win7
0 Kudos
Message 1 of 21
(4,052 Views)
does anybody know? pls
LV 2011, Win7
0 Kudos
Message 2 of 21
(4,015 Views)
As far as I can tell there is no way to ask the 3D graph what data it is using, therefore you are going to have to keep track of the data.
 
I am confused why this would be a problem?  Even if there where a query method, it seems doubtful to me that it would be faster for 1 #D graph to return its data and you to send that to a sepereate graph and have that 2nd grpah re-plot the data. 
 
Can you describe how you plan on using the 2 graphs, or why you can't simply wire the same data between the 2?  Do you really just want to copy some of the properties and not necassarily the data?
0 Kudos
Message 3 of 21
(4,007 Views)
ceties,
There are outputs from the PlotGraph invoke node that duplicates the data that you passed into your first graph. Why not wire the outpus from this graph to the inputs of your second graph? Or if not this, then create a branch in the wire that connects your data to your first graph. Branch that data into the second graph.
 
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 4 of 21
(4,006 Views)

"There are outputs from the PlotGraph invoke node that duplicates the data that you passed into your first graph. Why not wire the outpus from this graph to the inputs of your second graph?"

Please post an example to illustrate this. The simpler, the better.

Curious,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 21
(3,997 Views)
2 Evan: I have array 5x18000 elements-compute this array takes about 10sec, because process of generation consist of many iteration. So this is the reason why I don't want to generate them again. Another reason is that it is array of double and it takes a lot of memory to keep it.

2all: I think my example wasn't good.
I have have small 3D graph (only a preview) on first VI and I want to to see him in detail (bigger ) on second VI-after button click!!!.
Because the reasons meantioned above I don't want to compute the vectors again.
If my problem is still not clear the situation is very similar to the situation when you want to write the data from 3Dgraph to file. When using XY Graph it's easy to use property "Value" and just unbundle it-->you have the X and Y vector than you can write them into file.

Uff is it clear yet? Maybe it's quite easy but I don't see it 😞
Thank you for yours time.
LV 2011, Win7
0 Kudos
Message 6 of 21
(3,991 Views)
I don't know why you think you have to re-create the data once it's been already generated. You take the data that you have already wired to the Plot3DCurve method and just wire it to another graph in the same VI or in a subVI that you have pop-up.
Message 7 of 21
(3,985 Views)
It sounds like you don't understand some of the basics of LabVIEW. A single data source can be wired to multiple data inputs. Here's a numeric control that's wired to a couple of different indicators and the inputs of a couple different functions. Your problem can be solved in the same way - just wire the results you've generated to multiple inputs.
Message 8 of 21
(3,976 Views)
I understand this very well. But I thought it's wasting of memory to create notnecessary indicator to hold data-I can't wire the terminals directly only via local variables because of long distance and complicated scheme.
On the picture is indicator(hidden) to hold data. The black point indicates new memory allocation. I wanted to have my application well in memmory management because it's huge project and it works with big amount of data. But in this case I must break over.
Thank you all!!
LV 2011, Win7
0 Kudos
Message 9 of 21
(3,969 Views)
It's wasting memory to use a local variable. A local always creates a copy of the data.
0 Kudos
Message 10 of 21
(3,945 Views)