Skip navigation

Account settings

Topic

Schnittpunkt von Graph und Geraden

Home page Community Automation and VBA Intersection of graph and line

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34933
    stephan rieke
    Participant

    Wie kann ich diesen Schnittpunkt ausgeben lassen? Und zwar den ersten Schnittpunkt?

    #34935
    stephan rieke
    Participant

    Wie kann ich diesen Schnittpunkt ausgeben lassen? Und zwar den ersten Schnittpunkt?

    #34934
    Bernhard Kantz
    Participant

    Create a FPScript formula which calculates the intersection point. Subtract the line from the curve and search the zero values with the [b]LevelCrossings[/b] function. If you only need the first x-value you can also use the [b]NextLevelCrossing[/b] function.

    [Code]
    Dim idx = LevelCrossings(Signal2 – Signal, 0, 0, EVENT_BOTH, EVENT_INDEX)
    Signal[idx]
    [/Code]

    support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.