How can I record sim time when a variable reaches certain value?

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2020

    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.

    Unable to find an attachment - read this blog