02-22-2009 01:05 AM
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
02-22-2009 03:35 AM
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
02-23-2009 05:02 PM
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
02-23-2009 07:10 PM