03-12-2019 02:01 PM
Create a VI that plots sin θ versus cos θ for 0 ≤ θ ≤ 2π. Display the output on an XY graph. Label the x-and y-axes “sin(theta)” and “cos(theta)”, respectively. Add a cursor and a cursor legend to the plot. Using the cursor, verify that when sin θ = 0 (along the x-axis) that cos θ = 1 (along the y-axis). What geometrical figure results from running the VI?
I need help with having the 0 ≤ θ ≤ 2π be executed into a graph. Any point in the right direction would be greatly appreciated
Solved! Go to Solution.
03-12-2019 02:44 PM
03-13-2019 09:36 AM
03-13-2019 11:41 AM
This sounds suspiciously like you're trying to get us to do your homework for you.
Do you actually have any code made at all that you can post?
03-13-2019 11:48 AM
03-13-2019 01:54 PM
Here's a Rube-Goldberg way to make a circle of radius 1 using random numbers; maybe you'll get extra credit for it, it has more wires than the other solutions.
mcduff
03-14-2019 04:43 AM - edited 03-14-2019 04:46 AM
@altenbach wrote:
wiebe@CARYA wrote:
AKA: draw a circle...
... or just ....
Both have the problem that the 2 pi and 0 are the same point of course. Let's ignore that, as it isn't our problem anyway . EDIT scrap that. The 'requirement' says '0 ≤ θ ≤ 2π', so that is correct as specified.
I (sometimes) try to stay away from those analysis VIs as they do add a dependency (dll) to the executable. Not sure if there's any reason in that, just one of those things...
This solution is more difficult to understand, and therefore more fun (…):
Too bad that ramp pattern isn't polymorphic...