Forum FlexPro – Discuss your topic!

calculations of response time to 63%

Home > Community > FPScript > calculations of response time to 63%

Viewing 9 posts - 1 through 9 (of 9 total)
  • Autor
    Beiträge
  • #12474
    Anonym
    Gast

    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.

    #8146
    Anonym
    Gast

    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.

    #8770
    Bernhard KantzBernhard Kantz
    Teilnehmer

    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

    #8771
    Anonym
    Gast

    what 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.

    #8772
    Bernhard KantzBernhard Kantz
    Teilnehmer

    The cursor offer a Copy Range 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:

    0.63 * Sum(SignalSection)
    

    support@weisang.com

    #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.

    #8774
    Bernhard KantzBernhard Kantz
    Teilnehmer

    ‘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?

    support@weisang.com

    #8775
    Anonym
    Gast

    Hello,
    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?

    #8776
    Bernhard KantzBernhard Kantz
    Teilnehmer

    Please read the following articles in the FlexPro Help:
    Automating Tasks|Analysis Automation
    Automating Tasks|Creating Templates for Analysis

    support@weisang.com

Viewing 9 posts - 1 through 9 (of 9 total)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.