03-15-2016 07:49 PM
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!
03-15-2016 09:07 PM
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
03-15-2016 09:20 PM
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 solids 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!
03-15-2016 10:40 PM - edited 03-16-2016 01:49 AM
@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?
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!)