LabVIEW

cancel
Showing results for
Search instead for
Did you mean:

rocket simulation

good day every one.. i am trying to simulate a rocket/ missile flight. the rocket will be set to hit a target in the simulation. it is about the same as the car backward parking example in labview 2009. can anyone tell me where and how to get started??

tq

Message 1 of 10
(4,503 Views)

Re: rocket simulation

Hello,

First of all, if you are interested in creating a simulation of rocket, you probably will need to have the LabVIEW Control Design and Simulation Module installed on your machine. This package will help you define the equations that describe the motion easier than try to use only the LabVIEW PID and Fuzzy Logic Toolkit.

If you have this software already installed, then launch the example finder "Help >> Find Examples..." and navigate to "Toolkits and Modules >> Control and Simulation >> Case Studies >> Aerospace", In this folder we have several examples that would apply to rocket simulation. In special I would point to

- "Rocket Simulation (1D).vi" where it simulates the vertical motion of the rocket and how this behaves as you "burn" fuel

- "F15 Six DoF Simulation.vi" where we present a 6 degree of freedom model that describe the motion of a airplane as we have torque and forces applied to the center of mass

Hope this helps

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 2 of 10
(4,468 Views)

tq barp...
Message 3 of 10
(4,430 Views)

Re: rocket simulation

I had manage to create a vi, simulating the rocket movement. If I am to insert wind parameters ( wind speed and wind direction) into the vi, would it be a big changes to the vi I had created? And how is it possible to insert these parameters? thank you

Message 4 of 10
(4,242 Views)

Re: rocket simulation

Take a look at the F14 example (also in the aerospace examples). This model also includes a Dryden wind gust driven by Gaussian noise.

Message 5 of 10
(4,220 Views)

Re: rocket simulation

These are the image file for the rocket and the target

Message 6 of 10
(4,201 Views)

Re: rocket simulation

thanks dbhol, but i think that is to complex for me as i only have 2 weeks to finish this project. is there any way for me to insert vertical pointer as the input to wind speed, and link it to the angle calculated by the vi? and how is the simplest way to bring the wind parameter into the simulation??

Message 7 of 10
(4,195 Views)

Re: rocket simulation

If you open the example:

C:\Users\abarp\Documents\Development\cdsim2011_G_2010\dist\examples\Control and Simulation\Case Studies\Aerospace\Rocket Simulation\Rocket Simulation (1D).vi

I actually modelled the air friction that resists the moviment on the rocket. I call it "Aerodynamic Force" and this is a subVI that relates the Velocify, altitude, density of air, diameter of the rocket and coefficient of drag into it. However, this equation is only good for vertical motion with no lateral wind and drag and you probably will want to use drag related to the angle of attack of the rocket. But that can give you an idea on how to implement it.

Notice that dbhols pointed out the wind gust model is pretty good for you to study and find out how to this into your model directly when you are dealing with dynamic systems. The Rocket Simulation 1D also shows you that.

Now, on the animation, the arrow can be done by using the "Draw Line.vi" on the picture control to define the speed.

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 8 of 10
(4,169 Views)

Re: rocket simulation

If I am about to use the subVI in my VI, what changes should be made?  Can you help me as I am not really that good in using LabVIEW. Thank you

Message 9 of 10
(4,131 Views)

Re: rocket simulation

Hello,

That equation is valid for the vertical moviment. For horizontal, you need to have a similar equation, but with the decomposed forces related to that. I found this link on the web:

http://stackoverflow.com/questions/3231541/simple-2d-rocket-dynamics

I also find those other links that are very good:

http://my.execpc.com/~culp/rockets/rckt_sim.html

http://www.rocketmime.com/rockets/rckt_eqn.html

Hope this helps

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 10 of 10
(4,086 Views)