water effect

water effect

Post by aaa198 » Tue, 21 Mar 2006 22:11:14


 
In labview .how can i simulate the water flow in the pipeline. The speed of the water must be controled in the progrem.
 
 I tried to costimized the numeric control but found  the effect didn`t reach my anticipation. what can i do?
 
thanks for your help
 
 
 
 

water effect

Post by JoeLabVie » Tue, 21 Mar 2006 22:41:00

Hi aaa,
Do you have a model of the water flow (ie: pipe size, pressure & other parameters) that you want to simulate?
If so, then you can start building that model and create some controls so that you can "externally" modify the parameters while the model is running.  So start with the model. 
Can you describe what you tried to do when customizing the numeric controls?  >> "I tried to costimized the numeric control but found  the effect didn`t reach my anticipation. what can i do?  <<
Also, can you describe the end goal, it may help to better understand what you want to achieve.
Regards,
JLV

 
 
 

water effect

Post by tst » Tue, 21 Mar 2006 23:11:26

The easiest way to do this is shown in the attached VI (7.0).
The trick can be understood when the cluster is enlarged - a customized slide was used where the image of the slider was replaced with the image of the flowing water (created very quickly in Word). Moving the image repeatedly creates the appearance of continuous flow. The credit for this trick, as far as I'm concerned, goes to JPD.
This can also be done using the picture control or maybe an intensity graph, but that would probably be more complicated.


Flow.vi:
http://www.yqcomputer.com/
 
 
 

water effect

Post by JoeLabVie » Wed, 22 Mar 2006 02:11:26

Very nice tst, and very nice trick indeed :)
Was this what aaa was looking for? 
 
 
 

water effect

Post by aaa198 » Wed, 22 Mar 2006 18:41:39

I really appreciate your help
 
this is indeed the effect i was looking for!
 
I do not know how to express my feeling !(my english is not very well )
 
thank you
 
 
 

water effect

Post by devchande » Wed, 22 Mar 2006 21:40:59

"I do not know how to express my feeling!'
 
That's pretty simple.
For starters, you can give them all '5 stars' for their top answers! :smileyvery-happy:
 
 
 

water effect

Post by JoeLabVie » Wed, 22 Mar 2006 23:41:05

Good suggestion dev!
:D
 
 
 
 
-- forgot my signature smiley --Message Edited by JoeLabView on 03-21-2006 09:29 AM
 
 
 

water effect

Post by DFGra » Wed, 22 Mar 2006 23:41:05

There are two other ways of doing animation you may want to check out, as well. - Use an animated bitmap (e.g. GIF, PNG, MNG).  This will run the same animation each time with no real control, but you can show and hide it by getting a reference to it.
- Use a pict ring control and cycle programmatically through the images.  This is my favorite method because you have complete control.  It is especially good for generating animations of pseudo-random events.  I got a nice electrical discharge effect by cycling randomly through only four images.  The trick was to make sure that the next image is never the same as the previous.
 
 
 

water effect

Post by aaa198 » Thu, 23 Mar 2006 16:11:29

thank you!!!
I have already give all above five stars,
thank you very much
best regards
 
 
 

water effect

Post by DFGra » Thu, 23 Mar 2006 23:40:08

Here it is.  Have fun.


ExampleOfDischargeAnimation.vi:
http://www.yqcomputer.com/


Animation Ring Controller.vi:
http://www.yqcomputer.com/