Documentation Home Page RT-LAB 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 Next »

RELATIVE OPERATING TIME – [SITOPREF]
Compute the operating time of a relay relative to the rise or fall of a reference signal.
CATEGORY
SI5

DESCRIPTION
The function allows to compute the operating time of a relay relative to the rise or fall of a reference signal.
RESULT VARIABLES AND PARAMETERS

res

time in milliseconds for which the threshold value is reached on the signal analyzed, as specified by the reference pulse.

  • On a rise (m, c, C), the returned time is relative to the rising time of the reference pulse.
  • On a fall (d, f, F), the returned time is relative to the falling time of the reference pulse.
SignalSignal to analyze.
Reference signalReference signal.
Types (m, d, c, C, f, F)Type of search for the relay operating time, in other words the time when a threshold value is reached. On a rise (m, c, C), the relay must operate between the rise of the reference pulse and its end. On a fall (d, f, F), the relay must operate only after the fall of the reference pulse.
  • For type m, a change of state is searched for relative to the threshold and the initial state starting time between the start and the end of the reference pulse. If the state is the same at the beginning of the pulse, only a change of state is searched for. If however, the state is different at the beginning of the pulse, the initial state and then a change of state are searched for, both between the start and the end of the reference pulse.
  • For type c, a value smaller than the threshold value is searched for, between the start and the end of the reference pulse. If at the beginning of the pulse, the sample is already below the threshold, the search is for a value above the threshold and then for a value below it, before the end of the reference pulse.
  • For type C, a value greater than the threshold value is searched for, between the start and the end of the reference pulse. If at the beginning of the pulse, the threshold is already overshot, the search is for a value below the threshold and then for a value above it, before the end of the reference pulse.
  • For type f, a value smaller than the threshold value is searched for, between the end of the reference pulse and the ending time. If at the end of the pulse, the sample is already below the threshold, the search is for a value above the threshold and then for a value below it, before the end of the analysis limits.
  • For type F, a value greater than the threshold value is searched for, between the end of the reference pulse and the ending time. If, at the end of the pulse, the threshold is already overshot, the search is for a value below the threshold and then for a value above it, before the end of the analysis limits.
ThresholdThreshold to reach on the signal analyzed showing that the relay operated. The method used to establish that the value was reached is determined by the type of search (m, d, c, C, f, F)
Threshold_refThreshold value to reach on the reference signal specifying the start and the end of the reference pulse
Begin_timeTime at which the analysis of a signal must start. This time is expressed in milliseconds [ms]. This value must be greater than 0 and lower than the duration of the test. The default value is 0.
End_timeTime at which the analysis of a signal must end. This time is expressed in milliseconds [ms]. The value of this time must be larger than the specified begin_time and smaller than the duration of the test. Use the “HUGE” value to specify the end of the test. The default value is HUGE.
FactorMultiplying factor for the results generated by the function. The default value of the multiplying factor is 1.0 and has no effect on the results.

SYNTAX
res = sitopref( a, ref, "m", threshold, threshold_ref, 0, HUGE, 1)
CHARACTERISTICS
Data type support
Double Floating point

EXAMPLE
The following figure shows the different cases for this function, including the limit cases where the values returned are HUGE, -HUGE or simply 0.

  • No labels