Home > Community > FPScript > calculations of response time to 63% > Antwort auf: calculations of response time to 63%

#8773 Anonym
Gast

From your explanation, here is what we do:
1 – Creating a graph
2a – Using the “Copy Range”
2b – Select “Use variable for cursor positions”
3 – In the explorer, we’ve pasted the copied data. A formula called “UsrSection” appears.
4 – Creating a new formula called “UsrSection2. The equation of this formula is 0.63 * Sum (UsrSection). The result is “-153829.40”.
5 – Create another formula named “UsrSection3. The equation of this formula is:
Dim x63
x63 = 0.63 * UsrSection2.X[-1] //UsrSection2.X[-1] is the last x-value of the sine signal
UsrSection2[[0,x63]] // Range from 0 to 63% of the last x-value
Flexpro6 says “No index can be applied to scalar values”
Why this response?
6 – Try cherhce, we also created a formula named “UsrSection4. The equation of this formula is:
Dim x63
x63 = 0.63 * UsrSection.X[-1] //UsrSection.X[-1] is the last x-value of the sine signal
UsrSection[[0,x63]] // Range from 0 to 63% of the last x-value
The result of this formula is:
Y: -7.27
X: 727.42
These two values correspond to the coordinates of a markeur our graphiq but it is not the desired result.

In our example, the theoretical response time to a system of first order is 61.22 s.

Why our results are false.