Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

OPERATION TIME – [OPTIME]
Returns up to 6 time values crossing the threshold in function of the direction selection.


CATEGORY
Miscellaneous

DESCRIPTION
Returns up to 6 time values crossing the threshold in function of the selected direction. Note that auto selection in Direction will select rising if the signal at t=0 is lower than the threshold and falling if the signal is higher than the threshold.


RESULT VARIABLES AND PARAMETERS

Result:

op_t1Output time 1
op_t2Output time 2
op_t3Output time 3
op_t4Output time 4
op_t5Output time 5
op_t6Output time 6


Parameters:

SignalInput signal
ThresholdThe threshold used to compare the input signal and return the output time
Direction[auto] : If input(0) >= Threshold, Direction = falling. If input(0) < Threshold, Direction = rising
[rising]Output time will be the first six rising edge that cross the threshold
[falling]Output time will be the first six falling edge that cross the threshold
[both]Output time will be the first six rising and falling edges that cross the threshold
Reference TimeThe output time is represented by the crossing time-shifted by the reference time. If the first crossing occurs at t=1.0 and Reference Time = 0.25, op_t1 will be 0.75.


SYNTAX

[op_t1,op_t2,op_t3,op_t4,op_t5,op_t6]=optime(Input,Threshold,both,Time_Shift)


CHARACTERISTICS
Data type support
Double Floating point


EXAMPLE
Where Threshold = 0.5 and Time_Shift = 0

  • No labels