Signal Builder Time Issue

2 visualizaciones (últimos 30 días)
Tom
Tom el 13 de Oct. de 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

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 13 de Oct. de 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.

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by