LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview XY Graph Bouncing Ball VI

Hi, I need to simulate a bouncing ball in Labview using an Express XY graph. I know I need an event driven case structure, but am lost on where to go from there. The ball needs to bounce contintually despite bouncing off "walls". Any help would be much appreciated. Thanks!

 

0 Kudos
Message 1 of 4
(4,056 Views)

Please, either do your own homework or drop the class!  If this is something you need to learn (because it will be a useful job skill), you need to learn it (employers are pretty good in discovering "fakes").

 

If you "get stuck" at a particular spot in your code, post your VI, tell us what specific question you have, and we'll probably help.

 

Bob Schor

0 Kudos
Message 2 of 4
(4,025 Views)

Oh, wow! that brings back an interesting moment in a class I once took.

 

<Totally sea story mode = ON>

The Mathworks was training me on one of their software products and used a "Bungee Jumper" simulation.  You guessed it! what parameters of length and elasticity of the bungee cord would prevent the death of the victim?  The simulations showed beautiful dampend sine wave motionons through ground.  When asked to solve the "Bungee Jumper" exercise for closest approach to ground without injury I replied "Any mass over "X""  The simulation did not change the jumpers dV when passing through solidsSmiley Very Happy  Yes, its not the fall that hurts- it is the sudden stop at the end!  no sudden stop- no pain or death!

</ Total Sea story mode> 

 

Remeber to make the angle of incidence equal to the angle of refraction!


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(4,011 Views)

@JeffBelter wrote:

Hi, I need to simulate a bouncing ball in Labview using an Express XY graph. I know I need an event driven case structure, but am lost on where to go from there. The ball needs to bounce contintually despite bouncing off "walls". Any help would be much appreciated. Thanks!


What are the actual requirements and what are the things you added or assumed?

 

  • Why an express xy graph? (That would be my last choice!)
  • What is an "event driven case structure"? (events don't "drive" case structures, whatever that means. Do you have an event structure? A case structure?)
  • If you say "go from there", does that mean you have made code up to there already? Can you show us what you made so far?
  • If you say "continually", why would you need events? Also, does that mean that the ball is in vacuum with zero friction and ideal elastic properties?

 

If you would search the forum (also a good skill to practice!), you would probably find e.g. this discussion, but you would need to know some LabVIEW basics to understand it.

(Note that it does not have any express xy graphs , events, or case structures, so it won't really get you anywhere you need to go. Also remember that your teacher reads these posts too, so if you rip off existing code, make sure you understand the full meaning of every single wire, structure, primitive, and any other code element. The teacher will ask detailed questions, so be prepared!)

 

0 Kudos
Message 4 of 4
(3,994 Views)