Effacer les filtres
Effacer les filtres

Signal Builder Time Issue

2 vues (au cours des 30 derniers jours)
Tom
Tom le 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

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 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.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by