Using the simulation time as a variable during a SimPowerSystems simulation
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I was wondering if it was at all possible to use the simulation time as a variable in a SimPowerSystems simulation to calculate the rate of change of another variable while the simulation is running?
Also is there a function in matlab that can take in a time threshold and detect if a system variable goes above a certain limit for that threshold time?
I have tried using tic and toc functions as well as simtime but it did not work.
0 comentarios
Respuestas (2)
Stephan
el 18 de Abr. de 2012
Try the Simulink Source "Clock". The output of the Clock-Block is the current simulation time.
0 comentarios
Ver también
Categorías
Más información sobre Electrical Sensors 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!