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.

Misc. | CROSSING TIME

CROSSING TIME – [CROSST]
Output the time at which the signal cross the threshold depending on direction and slope parameter.
CATEGORY
Miscellaneous

DESCRIPTION

The function outputs time value at which the signal cross the threshold depending on direction and slope parameter. The scope of the search is limited to the window formed by Begin_Time and End_Time. Using HUGE for the End_Time will set the parameter to match the end of acquisition. If there is no match, the graphic will be empty.

DirectionForward will search the threshold value from Begin_Time toward End_Time. Backward will do the opposite.
SlopeUsing Positive Slope will search the threshold when the slope increase in function of time while Negative will search it when the slope decrease in function of time.


RESULT VARIABLES AND PARAMETERS

ResultTime at which the signal cross the threshold in function of the parameters
SignalInput signal
ThresholdReference value to which the signal is compared
Begin TimeBeginning time of the function
End TimeEnding time of the function
DirectionDirection for the search (1: Forward, 0 : Backward)
SlopeType of slope (1: Positive, 0 : Negative)


SYNTAX
Result = crosst(Input,Threshold,T_Beg,T_End,Direction,Slope)


CHARACTERISTICS
Data type support

Double Floating point


EXAMPLE
Threshold = 0, T_Beg = 0, T_End = Huge

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter