LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a marker to go round shapes?

Solved!
Go to solution

Hello Everyone,

 

I have a problem here, I have done up a rectangle using Draw Rectangle.vi on a X-Y graph however I have no idea how to add a marker to circulate around it.

 

Can any kind souls advise me on this please? Am I in the right direction?

 

The picture below explains my requirements (I need to be able to control the marker's speed and direction of rotation, also the size of shapes):

Capture3.PNG

 

Any help is much appreciated! Thank you very much!

 

0 Kudos
Message 1 of 3
(2,583 Views)
Solution
Accepted by topic author allinson

Here is something to get you started.

 

Key points: 1. You need to be able to track the position on the boundary of the image you are placing the marker on. For rectangles it is easy since only one direction changes at a time for other shapes it can be messier.

2. In the loop where the marker is placed do NOT use a shift register for the picture. Doing so will result in a series of markers rather than one which appears to move.

 

Many of the indicators in this VI are just for diagnostic purposes.

 

Lynn

Message 2 of 3
(2,559 Views)

Thanks a lot, Lynn! I will study your .vi and make it to good use!

 

Have a good week ahead!

0 Kudos
Message 3 of 3
(2,557 Views)