From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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

0 Kudos
Message 1 of 10
(4,508 Views)

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
0 Kudos
Message 2 of 10
(4,473 Views)
tq barp...
0 Kudos
Message 3 of 10
(4,435 Views)

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

0 Kudos
Message 4 of 10
(4,247 Views)

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

0 Kudos
Message 5 of 10
(4,225 Views)

These are the image file for the rocket and the target

Download All
0 Kudos
Message 6 of 10
(4,206 Views)

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??

0 Kudos
Message 7 of 10
(4,200 Views)

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
0 Kudos
Message 8 of 10
(4,174 Views)

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

0 Kudos
Message 9 of 10
(4,136 Views)

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
0 Kudos
Message 10 of 10
(4,091 Views)