Signal Builder Time Issue

3 views (last 30 days)
Tom
Tom on 13 Oct 2011
I'm having trouble with the signal builder restarting from the beginning of the signal when restarting my model from a saved state.
I'm running a model of a gearbox, running the model up to speed and saving the model state as xFinal, then resimulating the model a number of times in order to optimise the shift, initialising the model using xInitial = xFinal.
The problem is that the signal builder used to control the inputs to the gearbox model is restarting from the beginning of the signal when re-initialising the simulation this way. Is there a way around this?
Thanks Tom

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 13 Oct 2011
I think this might be the issue.
When you run the simulation the first time and reach the model state xFinal, you need to record the time stamp.
When you try to run the simulation the second time setting xInitial = xFinal, you need to set the start time as the saved time stamp.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!