LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making animation

Solved!
Go to solution

Hi everyone,

 

I want to make a animation for a fan.

The function that I made is in a VI.

This VI is attached as attachment and is build with Labview 8.2.

 

The problem is that I can not make the animation working outside of the block "Axial Fan Anim."

 

Please have a look at it and if you have a solution, please tell me.

 

Regards,

 

Kenny

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

Your forgot to include the subVI.

0 Kudos
Message 2 of 7
(3,392 Views)
0 Kudos
Message 3 of 7
(3,387 Views)

Hi Altenbach,

 

I saw your VI.

But the fan is not turning around very smoothly.

Please check my VI (now with subVI) and look if you can find the problem.

 

The problem is that the fan is turning in the block.

But as soon as he get out, it won't.

I connected it right in the "Axial_fan_Animation" to a connection in the icon.

 

It would be nice if you can have a look at it again.

 

Regards,

 

Kenny

Download All
0 Kudos
Message 4 of 7
(3,360 Views)
Solution
Accepted by topic author Cheese11

Hi Cheese11,

 

Check the VI now.

Regards,

Nitzz

(Give Kudos to good Anwers and Mark it as a Solution if your problem is Solved;)) 

Download All
Message 5 of 7
(3,357 Views)

@Cheese11 wrote:

But the fan is not turning around very smoothly.



The problem is that you have only three frames and the first and last frames look the same. You need three frames that differ by a 20 degree rotation. (For even smoother animation, increase the number of frames). Also remember that LabVIEW starts counting with zero. You never show frame 0.

 

Also, your ring should be an integer (blue), DBL seems silly.

 


@Cheese11 wrote:

But as soon as he get out, it won't.


Sorry, I don't understand. What you mean with this. Who is "he"? "get out" of what?

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

Hi,


I think what he meant is about the program control running out of the while loops. What he has done in his previous example is, he has made a subVI with the running fan and passed the values to the mainVI. But the fan in the mainVI doesn't run simultaneously because he has put a while loop in his subVI and there is no loop in the mainVI at all. I have inserted a while loop in the mainVI and made the subVI loop run only once by wiring a true constant to its conditional terminal. Looks like the fan is running in the mainVI now.

 

Regards,


Nitzz

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