Accueil > Community > FPScript > calculations of response time to 63% > Reply To: calculations of response time to 63%

#8770
Bernhard KantzBernhard Kantz
Participant

You can create a FPScript formula and use the index operator or the value index operator to extract a section from a signal.

Example1: Value Index operator
The signal has the name ‘Sine’.


Dim x63
x63 = 0.63 * Sine.X[-1]  //Sine.X[-1] is the last x-value of the sine signal
Sine[[0,x63]]   // Range from 0 to 63% of the last x-value

Example2: Index operator
This example only works if your signal is equidistant.


Dim idx63
idx63 = 0.63 * NumberOfElements(Sine) - 1
Sine[0,x63]

support@weisang.com