LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

motor rotation animation (clockwise, anti-clockwise)

hi all, can anybody tell me how the shaft of a motor can be animated to rotate clock-wise and anti-clockwise direction. precisely , from this website below, how can i make similar

 

http://members.lycos.co.uk/sgctek/motor.html

 

plz guide

 

Thanks

0 Kudos
Message 1 of 4
(5,997 Views)

Hi freemason,

you can use different images which you draw into a picture control. You can load the images from a gif and use an array to store them. Draw one image after the other into the picture control. You can do it inside a loop.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 4
(5,983 Views)

Hey freemason,

 

Mike has a good suggestion. It sounds like you may also be interested in setting up a picture ring control. Check out this Knowledgebase for some more information on how to set up a picture ring control.

 

Essentially, the examples that can be found on the website you linked are just a series of 7 pictures that represent the entire revolution of the shaft. Each picture is associated with an integer. There is then a loop that controls the speed at which the program goes through the 7 integers and thus the 7 pictures. If you haven't already, take a look at the block diagram and you might get a little more insight into how those examples work.

 

Hope this helps.

 

-Ben

 

Applications Engineering

National Instruments

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 3 of 4
(5,944 Views)
Thank you both
0 Kudos
Message 4 of 4
(5,933 Views)