LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CWGraph3D Solution

I've been on the forum looking for a good 3D graph example and found several, mostly CWGrah3D.  But no matter how I try to wire my arrays into the graph I can't get my data to look as expected.  I decided to make a drawing and hopefully someone could help out.  I don't need to display arrows (there are there to make the drawing more understandable...I hope) but a 2D curve or surface plot would be helpful to visualize areas that have low throughput, possibly using the color intensity examples I've seen.
 
 
Example Data:
DC Range Thoughput
10 1 15
20 1 20
30 1 25
40 1 26
50 1 27
60 1 28
DC Range Thoughput
10 2 15
20 2 21
30 2 24
40 2 26
50 2 27
60 2 29
DC Range Thoughput
10 3 12
20 3 20
30 3 21
40 3 25
50 3 24
60 3 27
Regards,
 
-SS


Message Edited by ShotSimon on 07-10-2008 02:43 PM


0 Kudos
Message 1 of 13
(4,073 Views)

I'd us a parametric plot if you want a surface.

When working with paramteric plots you specify a set of points that are described by a triplet of X,Y,Z.

There is seperate array for the X values Y values and Z.

It wants a 2-d array so it knows which points to connect. Adjacent point will be connected.

If you just want three line, then use a unique plot number for each trace.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 13
(4,064 Views)

I put this worse case 3d plot example together in the hopes someone would learn from it some day (starts at reply #7). I am holding my breath that you may just be the one.


Have fun and please post some cool pictures.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 13
(4,060 Views)
Ben,
 
I saw this post already very cool.  I just got hung up on cartesian vs polar graphing, and what format the CWPlot3D should be in.  I already learned that I have alot to learn;)  -SS


0 Kudos
Message 4 of 13
(4,056 Views)

Ben,

OK I never knew about the error stacker...Does that count?  -SS



0 Kudos
Message 5 of 13
(4,048 Views)

Ben,

I tried plotting my data from your example.  I also tried to label the graph and nothing appears.  What am I doing wrong?  -SS 



0 Kudos
Message 6 of 13
(4,041 Views)

I don't see where you are labeling anything.

Please save your data as the default so I can run your example.

Look closely and you will see a similar structure between how the code is written and the structure of the CW 3d graph propety screen.

If you can set it in the property screen you can set it programatically in a similar manner.

Ben



Message Edited by Ben on 07-10-2008 06:18 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 13
(4,038 Views)

Ben,

Sry about the missing data...The problem was that visible was unchecked for the captions..  I saved my data (see attached) but I am having a hard time moving the axises such that (1) you can read everything, (2) the z-axis point diagonally into the page from front-bottom-left to rear-top-right. 

I think I follow the CWPlot3D properties, it will take me some time to understand what they all do.

Regards,

-SS



Message Edited by ShotSimon on 07-11-2008 11:57 AM


0 Kudos
Message 8 of 13
(4,014 Views)

Ben,

What do think I should do to make it look right?  -SS



0 Kudos
Message 9 of 13
(3,996 Views)

Sorry SS,

Didn't realize I needed to reply. Well now it don't have all of the sub-VI's so all I can offer is "have you got your arrays wired to the proper inputs (X,Y,Z) ?"

If you switch to the operate tool you can then move your viewing angle. A shift drag will drag the graph inside the frame. A alt-drag will let you zoom in/out.

Ben



Message Edited by Ben on 07-15-2008 07:53 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 13
(3,985 Views)