How can I record sim time when a variable reaches certain value?
Altair Forum User
Altair Employee
Submitted by vinayak on Thu, 07/16/2009 - 02:14
How can I record and report elapsed sim time when a specific variable reaches certain value (for the first time in that simulation). Example > Beverage temperature in pull-down test reaches setpoint at 10 hrs from the beginning of the simulation.
0
Answers
-
Submitted by pete on Thu, 07/16/2009 - 02:19.
Use crossDetect to send a pulse when a signal hits the desired level. The pulse is used to trigger an export block. The values on the input pins will be logged to the exported file. The ramp block gives you sim time, you can log the actual value of the signal and any other info you want.
The attached diagram shows how to put it all together.0