取消
显示结果 
搜索替代 
您的意思是: 

graphing partial circles

已解决!
转到解答

Hello,

 

I am creating a vi that graphs a circle from a certain interval, so like pi/3 to 2pi. I am using the sin and cos function. How can I graph these partial circles?

 

Thanks

Chod

0 项奖励
1 条消息(共 11 条)
4,866 次查看
Can you attach your vi?
0 项奖励
2 条消息(共 11 条)
4,826 次查看

Hi Chod,

you can use an x-y-graph or you can draw the circle on a picture control.

 

Mike

0 项奖励
3 条消息(共 11 条)
4,817 次查看

hi chod,

  Have at this attachment..

 

 

Thanks and regards,

srikrishnaNF

Message Edited by srikrishnaNF on 04-30-2010 03:21 AM
Regards,
Srikrishna


0 项奖励
4 条消息(共 11 条)
4,803 次查看

Hi Chod,

 

when using a picture indicator you can use the DrawArc function...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
5 条消息(共 11 条)
4,786 次查看

Here is kind of what I need, although I need to be able to have a control for when to start and end the angle. I want two controls on the front panel, so when I graph it I can display any segment of the unit circle.

 

Thanks,

Chod

0 项奖励
6 条消息(共 11 条)
4,752 次查看
解答
已被主题作者 Chod 接受

Your For Loop just creates an array that has N of the same value.

 

Take a look at this.

 

 

Message Edited by Ravens Fan on 04-30-2010 11:08 PM
7 条消息(共 11 条)
4,692 次查看

Awesome thank you! One more question about that. How do I start the circle at (1,0)?

0 项奖励
8 条消息(共 11 条)
4,686 次查看
and counter-clockwise
0 项奖励
9 条消息(共 11 条)
4,683 次查看

I just happened to go with the way you wired up the sin/cos function.  Looking at it more closely now, you had the output of sin going to X and cos to Y.  That's backwards from normal trigonometry.

 

Swapped the wires so that the Sine goes to the Y input and the Cosine goes to the X input, then you'll have it start at the right hand side (3 o'clock, (1,0) point) and it will go counter -clockwise.

 

Also, if you want to the center to be a different location, then you'll just have to add the new center point (currently 0,0) to the results of the sine and cosine function.

10 条消息(共 11 条)
4,643 次查看