Simulink orbit propagator: How do I pause and access data at each time step?
Show older comments
Hi All;
As you know Simulink has a wonderful high precision orbit propagator block. This block is pretty much a closed (black) box such that you give all the inputs and start the simulation (i.e. propagtion) between time steps t_start upto t_end. It then outputs all the results as a batch after the simulation so the user can access position and velocity data.
Instead of running this script in one single batch, what I want to do is the following:
- 1) propagate the orbit at every time step (say every 1 second)
- 2) then get the position and velocity vector to MATLAB
- 3) do something with that R and V vectors
- 4) then go back to step 1 and propagate for next time step.
I tried different methods to do this. I tried pausing the sim or calling the entire simulator giving a delta simulation time of 1 second but it does not really work.
Is there anyway which I can do what I just explained.
Many thanks for responses ?
Gökhan
Accepted Answer
More Answers (1)
Gökhan
on 23 Sep 2024
0 votes
Categories
Find more on Aerospace Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!