FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Script/Formel vergleich von 2 Datensätzen

Home page Community FPScript Script/Formula comparison of 2 data sets

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33500
    Andreas Schüssler
    Participant

    Guten Tag

    Ich habe folgendes Problem. Ich benötige ein Script bzw. Formel, indem ich zwei Datensätze miteinander vergleiche.

    Datensatz1: Stufensignal (ganze Zahlen, steigend und fallend)
    z.B.: 0,0,1,1,1,2,2,3,3,3,3,3,2,2,2,1,1)

    Datensatz2: z.B. Sinuskurve mit Rauschen

    Anforderungen an das Script:

    lokales Extremum des Datensatzes2 in den Intervallen während der Dauer des anliegenden Signals “0,0”,”1,1,1″,”2,2″… aus Datensatz1.

    Vielen Dank für Ihre Hilfe

    #33502
    Andreas Schüssler
    Participant

    Guten Tag

    Ich habe folgendes Problem. Ich benötige ein Script bzw. Formel, indem ich zwei Datensätze miteinander vergleiche.

    Datensatz1: Stufensignal (ganze Zahlen, steigend und fallend)
    z.B.: 0,0,1,1,1,2,2,3,3,3,3,3,2,2,2,1,1)

    Datensatz2: z.B. Sinuskurve mit Rauschen

    Anforderungen an das Script:

    lokales Extremum des Datensatzes2 in den Intervallen während der Dauer des anliegenden Signals “0,0”,”1,1,1″,”2,2″… aus Datensatz1.

    Vielen Dank für Ihre Hilfe

    #33501
    Bernhard Kantz
    Participant

    At first you have to calculate the positions where the first dataset changes the level. For this you can use the [b]LevelCrossings[/b] function. After that you have to program a loop and calculate the data range of the second dataset where the values of the first dataset are equal. For this you can use the index operator []. For each data range you can calculate a local extrema using the [b]Extrema[/b] function.

    support@weisang.com

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