From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot an ellipse with the equation in Robert H. Bishop's book

Solved!
Go to solution

Hi,

 

I've been trying to plot the ellipse with the equation on Page 232, Q E7.3 of Dr. Robert H. Bishop's book.

I am currently stuck as I am unable to find a solution for this. Below is the equation which is required to 

be used.

 

r^2= A^2*B^2/(A^2*sin^2(ф)+B^2cos^2(ф))

 

inputs are A, B and r with 0 <= ф <= 2*pi

 

Anyone got a suggestion on this? Thanks a million!

 

0 Kudos
Message 1 of 9
(6,404 Views)
You have to use a XY graph. and plot the ellipse as a series of points describing x, and y positions. Equal to point P in the attachment. Hint Google and Wikipedia is your friends  ;). But feel free to post any question regarding Labview code for your school assignment 
Message Edited by t06afre on 03-23-2009 01:44 PM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 9
(6,390 Views)
Duplicate post.
0 Kudos
Message 3 of 9
(6,371 Views)

I just built a VI to graph an ellipse with that equation and it works fine, although R is not an input.

 

Looks like "A" is the X-axis radius, and "B" is the Y-axis radius. 

 

What part are you having trouble with? 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 9
(6,344 Views)

Hi Steve Bird

 

Up until now I am able to plot the ellipse but the direction of the ellipse is not the same as in Robert's book.

In Robert's book, the ellipse is displayed horizontally but mine is displayed vertically. Any idea how do i rotate

the ellipse?

 

Thank you.

0 Kudos
Message 5 of 9
(6,336 Views)
Solution
Accepted by topic author The cat

If "A" is the X-axis radius, and "B" is the Y-axis radius, then what happens if you swap A and B? 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 6 of 9
(6,322 Views)

Typically, you can eliminate all trigonometry by using complex math. xy graphs directly accept complex numbers, in which case they will graph in the complex plane. That's what you want!

 

Here is an example I made long ago in LabVIEW 7.0 (Ellipse2.vi), maybe it can give you a few more ideas. 🙂

 

(see also this old thread)

Message 7 of 9
(6,307 Views)

Hi Chris M, Steve Bird, Altenbach

 

U guys have been a great help!

 

Thanks!!

0 Kudos
Message 8 of 9
(6,270 Views)

Absolutely perfect. Thanks!

0 Kudos
Message 9 of 9
(3,525 Views)