05-24-2012 02:42 PM
Hi there, i need to create VI with rotating fan with possibility to change speed and direction.
I need that object Ring should be placed here, but i don't know definitely how.
Can someone help me?
here is fan
05-24-2012 04:32 PM
One common way to do this is to have the various images of the fan at different positions, and then populating a picture ring with the individual images. Then you can simply cycle through the picture ring values in a loop.
You could also use an animated GIF right on the front panel, but these tend to be resource hogs.
05-24-2012 04:50 PM
What about the VI altenbach provided in this thread?
http://ni.lithium.com/t5/LabVIEW/How-to-rotate-objects-or-pictures-on-my-FP/td-p/196148/page/2
You could control the speed at which it rotated by controlling your loop speed.
05-30-2012 11:08 AM
can someone help me and insert my image and add possibility to change direction and speed of rotation ?
05-30-2012 11:37 AM
Insert an image where? What solution are you using? If you're using a picture ring, adding of items is documented in the LabVIEW Help. Did you read it?
05-30-2012 11:38 AM
Yes, i'm using picture ring
I mean controls of rotation, i just don't get it clearly
05-30-2012 12:24 PM
A single image of a fan is not enough. You need several images of the fan at different angles. You'll have to generate those images yourself, or find them somewhere. Then you can insert the images into the ring. By changing the ring value you will get the appearance of the fan rotating. But you cannot do it with the single image of the fan that you posted.
05-30-2012 12:36 PM
There are some examples of fans and other animated images available here:
http://members.multimania.co.uk/sgctek/main.html
05-30-2012 12:46 PM
I have this solution, it's close to what i need, i just need to make a white background and automate the rotation, not by the manual selection
05-30-2012 04:32 PM
You said before you were using a picture ring. You are not. You are using a picture control. The solution you indicated is just altenbach's original example. I fail to see how this will solve your problem. That example is not designed to create a spinning anything. It just rotates a picture.