LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Point Rotation in a x-y Graph

Hi guys,

 

Can i ask for a point given in x-y coordinates, how do i make this point rotate smoothly and shown in a x-y graph? Is there any way i could control the speed of this rotation? Please guide me along. Thank you in advance. 

 

Best Regards,

Scott. 

0 Kudos
Message 1 of 7
(3,634 Views)

Where is the center of rotation?

 

Look in the geometry VIs, especially the 2D Cartesian Coordinate Rotation VI.

0 Kudos
Message 2 of 7
(3,627 Views)

HI Altenbach,

 

My center point will actually varies depending on where my inputs. However, is there any way I could control the speed of the rotation? Is the controlling of the "omega" in terms of radians the only solution? 

0 Kudos
Message 3 of 7
(3,618 Views)

The "speed" of rotation is determined by the loop rate of the updates and the angle step per update. The loop rate is determined by the wait function.

 

Can you attach some simple code showing how it should look like?

0 Kudos
Message 4 of 7
(3,615 Views)

Maybe something like this?

0 Kudos
Message 5 of 7
(3,603 Views)

Hi Altenbach,

 

It definitely looks good when it is functioning in a while loop. However, if my design is using a "case structure" instead, how do i be able to control the speed of the rotation? 

 

Best Regards,

Scott 

0 Kudos
Message 6 of 7
(3,590 Views)

Sena_Scott wrote:

It definitely looks good when it is functioning in a while loop. However, if my design is using a "case structure" instead, how do i be able to control the speed of the rotation? 


I have no idea what you mean by using a case structure instead of a while loop. Since the two are completely different, that statement makes no sense to me. Can you show us your code? Maybe you need to update the xy graph in a seperate loop. What else is displayed on that graph?

0 Kudos
Message 7 of 7
(3,574 Views)