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

Indexoperator mit for-Schleife

Home page Community FPScript Index operator with for loop

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33231

    Ich habe einen Datensatz mit mehreren Spalten, welche verrechnet werden müssen.
    [code]P[kW]
    5,67
    26.6
    13
    …..
    [/code]

    Hierbei soll folgende Formel realisiert werden und als neuer Datensatz für W angelegt werden:

    W=P(n-1)*1800+W(n-1)

    Hierbei steht (n-1) jeweils für den vorhergehenden
    Messwert P bzw. für das vorhergehende Ergebnis W.
    Ist dies in FBScript realisierbar, wenn ja wie?

    Mit freundlichen Grüßen,

    #33233

    Ich habe einen Datensatz mit mehreren Spalten, welche verrechnet werden müssen.
    [code]P[kW]
    5,67
    26.6
    13
    …..
    [/code]

    Hierbei soll folgende Formel realisiert werden und als neuer Datensatz für W angelegt werden:

    W=P(n-1)*1800+W(n-1)

    Hierbei steht (n-1) jeweils für den vorhergehenden
    Messwert P bzw. für das vorhergehende Ergebnis W.
    Ist dies in FBScript realisierbar, wenn ja wie?

    Mit freundlichen Grüßen,

    #33232
    Bernhard Kantz
    Participant

    The formula for W could look like this:
    [code]0 : CumulativeSum(P[0, -2] * 1800)[/code]
    The 0 at the beginning as required only for the case n = 0, so that the result will have the sam length as the input data.

    Support
    support@weisang.com

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