General

General

How to use other variables but time in range functions?

    • FAQFAQ
      Participant

      When applying a range function (for example: YAtXVal) to a transient report, the variable X always represents time. To use a different variable, two or more nested functions must be used. For example, the torque at position 100deg can be calculated using the following expression: YAtXVal(Moving1.Torque, XAtYVal(Moving1.Position, 100deg)) Now XAtYVal(Moving1.Position, 100deg) returns the time instance where the position equals 100 degrees, and this time instance is then used in the function YAtXVal.