Topic
calculations of response time to 63%
Startseite ' Community ' FPScript ' calculations of response time to 63%
- Dieses Thema hat 8 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 16 Jahren von Anonym aktualisiert.
-
AutorBeiträge
-
13.05.2009 um 19:29 Uhr #33201AnonymGast
Hello,
to strip our records we need to perform calculations of response time to 63% of a signal.
In your version 6, is there a mathematical formula to do so?
Thank you for your reply.13.05.2009 um 19:29 Uhr #33209AnonymGastHello,
to strip our records we need to perform calculations of response time to 63% of a signal.
In your version 6, is there a mathematical formula to do so?
Thank you for your reply.13.05.2009 um 20:28 Uhr #33202Bernhard KantzTeilnehmerYou 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’.
[code]
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
[/code]
Example2: Index operator
This example only works if your signal is equidistant.
[code]
Dim idx63
idx63 = 0.63 * NumberOfElements(Sine) – 1
Sine[0,x63]
[/code]18.05.2009 um 17:43 Uhr #33203AnonymGastwhat we are asking is a calculation of response time in seconds of a system of first order.
Calculating a response time is achieved in 63% of the total signal amplitude and is expressed in seconds.We seek a solution to allow us to make this calculation:
– From a graphic
– Between the graph cursors.The results should be expressed in seconds.
19.05.2009 um 19:00 Uhr #33204Bernhard KantzTeilnehmerThe cursor offer a [b]Copy Range[/b] command with which you can create interactive ranges from data sets.
1) Use the command Copy Range on the Cursors toolbar or in the Cursors menu.
2) In the dialog box that appears, specify whether the current cursor positions are to be inserted as fixed or variable values. The command saves a formula in the clipboard, which extracts the section from the curve. In the latter case, the properties of the diagram, worksheet or document are used that determine the positions of the cursors. Thus, for example, you can combine the manual selection of a signal section with an automated analysis.Now you can create an additional FPScript formula to calculate the response time. Use the name of the FPscript formula (with the data range) as input source.
I’m not sure what’s the total signal amplitude. But there is the Sum-function to calculate the sum of a signal.
Example:
[code]0.63 * Sum(SignalSection)
[/code]21.05.2009 um 00:12 Uhr #33205AnonymGastFrom 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.
21.05.2009 um 00:45 Uhr #33206Bernhard KantzTeilnehmer‘UsrSection2’ calculates the sum of the signal range. The result is 63% of the sum.
But I don’t understand the formula ‘UsrSection3’?
The result of ‘UsrSection2 is a scalar value. The value index operator doesn’t work for scalar values.What is the mathematical formula of the total signal amplitude and what is the mathematical formula of the response time?
26.05.2009 um 00:30 Uhr #33207AnonymGastHello,
with this response I have attached a database where we have to perform the calculation of response time.
Comment out the graph, it’s the detailed calculation we make every treatment of our records (this is in french).
What we want Flexpro makes all the calculations automatically.
Our starting question is: how to achieve these calculations automatically?26.05.2009 um 01:14 Uhr #33208Bernhard KantzTeilnehmerPlease read the following articles in the FlexPro Help:
Automating Tasks|Analysis Automation
Automating Tasks|Creating Templates for Analysis -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.