-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Tageweise Integration
- This topic has 2 replies, 2 voices, and was last updated 14 years, 6 months ago by Rudolf Kohler.
-
AuthorPosts
-
May 19, 2010 at 5:43 pm #12562Rudolf KohlerMember
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
RudolfMay 19, 2010 at 5:43 pm #8225Rudolf KohlerMemberIch 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
RudolfMay 19, 2010 at 6:31 pm #8907Bernhard KantzParticipantThis is possible with the FPScript functions ValuesInInterval and Integral. With the ValuesInInterval function you calculate the values of one day. After that you can calculate the area under the curve using the function or the Area under Curve analysis object.
Example:
Integral(Data[ValuesInInterval(data.x, '19.05.2010 00:00:00', '19.05.2010 23:59:59')])[-1]
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.
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)
-
AuthorPosts
- You must be logged in to reply to this topic.