FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Assistance FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Assistance FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

Seeking extrema

Page d'accueil ' Communauté ' FPScript ' Seeking extrema

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33280
    Dirk Kampffmeyer
    Participant

    Hello,
    I would like to search an extrema and reduce the signal starting from this extrema. The program, however, outputs nothing but a failure of data structure.
    dim idxextrema=GlobalMaximum(Ch1,EVENT_INDEX)
    CH1[[idxextrema, Empty]]

    #33282
    Dirk Kampffmeyer
    Participant

    Hello,
    I would like to search an extrema and reduce the signal starting from this extrema. The program, however, outputs nothing but a failure of data structure.
    dim idxextrema=GlobalMaximum(Ch1,EVENT_INDEX)
    CH1[[idxextrema, Empty]]

    #33281
    Bernhard Kantz
    Participant

    Why do you use the Value Index operator and Empty as second argument?
    The result of GlobalMaximum is a data series with the indices of the maxima. In your case you need a scalar start index and a scalar end index. Use the Index operator. -1 is the index of the last value.
    [code]
    CH1[idxextrema[0], -1]
    [/code]
    The result is a signal starting from the first maximum.

    If you only need the maximum y-value use the [b]Maximum[/b]-function.
    [code]
    Maximum(ch1) //is equivalent to CH1[idxextrema[0]]
    [/code]
    support@weisang.com

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.