LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Aren't -180° and 180° the same for a 3D parametric surface graph?

Solved!
Go to solution

Hi everyone,

 

I need to plot some results using the 3D parametric surface graph and these 3 matrix :

 

  • First matrix “theta” : Each column ranges from -180° to 179°    (180x360)
  • Second matrix “phi” : Each line ranges from 0° to 89.5° (increasing by 0.5°)   (180x360)
  • Third matrix “z” : 180x 360 matrix initialised to 7

 

First and second matrixes are converted to a polar representation.

 

My problem is that I reach my goal, a full red circle, only if my matrixes range from -180° to 180° and not when they range from -180° to 179°. Aren’t -180° and 180° the same for this graph? I must be doing something wrong...

 

Any help would be great,

 

Thanks.

 

Regards,

 

User

 

Download All
0 Kudos
Message 1 of 6
(2,953 Views)

I'm not sure I completely understand your question, but I think what you are seeing is that the last degree from 179 to 180 (or -180) isn't being completed.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 6
(2,926 Views)

Yes that is my problem. I don't understand why I have to send a -180° information to the graph since I have already send a 180°...

0 Kudos
Message 3 of 6
(2,910 Views)
Solution
Accepted by User_1979

"First matrix “theta” : Each column ranges from -180° to 179° "

 

I take it this means the 179 to 180 plot is empty. You'll either have to manually connect the last plot (some fix to connect) or simply write the 179 to 180 also.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(2,898 Views)

Seems obvious that you need to have the first and last point the same in order to close the curve.

 

A simpler, but equivalent example is a circle on an xy graph, Unless the first and last point coincide, you won't close the loop. 😉

 

Message 5 of 6
(2,889 Views)

Hi Yamaeda,

 

Thanks for your answer.Since for me in the test -180° and 180 is the same, I had already done that : copy results of line -180° to line 180°. It's true that I forgot that it is a surface representation and not a XY graph.

 

Regards,

 

User

0 Kudos
Message 6 of 6
(2,824 Views)