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

Paramètres du compte.

Topic

Tageweise Integration

Page d'accueil ' Communauté ' Généralités ' Intégration à la journée

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33745
    Rudolf Kohler
    Participant

    Ich habe äquidistante Messreihen mehrerer Parameter (Abwassermengen) über mehrere Wochen in FlexPro dargestellt.
    Gibt es eine Möglichkeit, die Werte über Tage zu integrieren, sprich wieviel Abwasser ist pro Tag angefallen? Und dies möglichst automatisch?

    Danke
    Rudolf

    #33747
    Rudolf Kohler
    Participant

    Ich habe äquidistante Messreihen mehrerer Parameter (Abwassermengen) über mehrere Wochen in FlexPro dargestellt.
    Gibt es eine Möglichkeit, die Werte über Tage zu integrieren, sprich wieviel Abwasser ist pro Tag angefallen? Und dies möglichst automatisch?

    Danke
    Rudolf

    #33746
    Bernhard Kantz
    Participant

    This is possible with the FPScript functions [b]ValuesInInterval[/b] and [b]Integral[/b]. With the [b]ValuesInInterval[/b] function you calculate the values of one day. After that you can calculate the area under the curve using the function or the [b]Area under Curve[/b] analysis object.

    Example:
    [code]
    Integral(Data[ValuesInInterval(data.x, ‘19.05.2010 00:00:00’, ‘19.05.2010 23:59:59′)])[-1]
    [/code]

    If you want to calculate the area under the curve for different days you could add a loop and collect the results in a variable.
    [code]
    Dim resY, resX, lastDate
    Dim firstDate = data.x[0] // data is the name of the signal
    firstDate = Date(Month(firstDate), Day(firstDate), Year(firstDate))

    Do
    lastDate = firstDate + ’24:00:00’
    resY := Integral(Data[ValuesInInterval(data.x, firstDate, lastDate)])[-1]
    resX := firstDate
    firstDate = lastDate
    While lastDate < data.x[-1]

    Signal(resY, resX)
    [/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.