02-07-2018 02:10 PM
Hello,
I'm new to LabVIEW and am looking for some help graphing a circle in an XY-plot. I created a For Loop which graphs a simple circle (see attached image). However, I'd like to make some additions to my program:
If anyone could suggest ways to go about making these additions, I would really appreciate it. Thanks!
02-07-2018 02:21 PM
Please attach screenshots taken from the PC in PNG format rather than 7 MB JPEG pictures!
1&2
You can set the limits that numeric controls can have. From X (3?) up to 360 for number of segments,and 1 to 10 for radius. On the control, right click > Properties > Data Entry tab.
3. You'll need to put the graph in the For Loop and build the arrays inside the For Loop instead of auto-indexing on a tunnel. Put a Wait function inside the loop to slow down the execution.
02-07-2018 02:43 PM - edited 02-07-2018 02:50 PM
xy graphs "understand" complex, so all you need is an angle ramp as follows:
TO
draw incrementally, just place the indicator inside a loop and draw an increasing subset based on [i].
...and if you want to draw it in the other direction or from a different starting angle, shift/negate the ramp as needed.
02-07-2018 03:21 PM