LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having some issues plotting an ellipse...

So, I have tried to code this to where it creates the equation I need inside of a for loop (r^2=((A^2)(B^2))/((A^2sin^2phi)+(B^2cos^2phi)) but for some reason I can't set the bounds (0 less than equal to phi less than equal to 2 Pi) or connect it to a xy graph.

 

Any suggestions?

 

Thanks,

Chod

0 Kudos
Message 1 of 2
(2,419 Views)

The output of you FOR loop is a single number, not all ellipse. Your FOR loop calculates the same value N times. Try to involve the iteration terminal. 😉

 

Check the help on what datatypes an xy graph accepts. I recommend using complex numbers.

 

Here is an old example

 

Note that the rotation is easier using complex multiplication (details).

Message Edited by altenbach on 04-19-2010 08:59 AM
0 Kudos
Message 2 of 2
(2,409 Views)