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

alternative zu Arduino´s constrain?

Home page Community FPScript alternative zu Arduino´s constrain?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33666
    Robert Demmel
    Participant

    Hallo zusammen,

    gibt es in fp-script eine constrain Funktion wie bei Arduino?

    über die Ereignisisolation hab ich die werte die zu hoch oder zu tief sind ungültig gesetzt, kann aber keine Fläche unter der Kurve berechnen!

    Dim Flow = P_230V * 1000 / 1 kW * 1 L / (1.16 h / 1 h ) / 60 / ( ‘Tf_Wasser_VorL_’ – ‘Tf_Wasser_RückL_’ ) * 1 °C / 1 min

    Im Störfall (beginn der Messung)

    P_230V = 2,7 kW      ‘Tf_Wasser_VorL_’ = 15,21°C      ‘Tf_Wasser_RückL_’= 15,2°C     Erwartetes Ergebnis zwischen -4 und 4 l/min

    berechnetes Ergebnis -3879 l/min  => Ergebnis auf -4 l/min setzen.

    MfG Robert

    #33667
    Robert Demmel
    Participant

    Hi,

    ist das hier die eleganteste Lösung?

    Dim Flow = P_230V * 1000 / 1 kW * 1 L / (1.16 h / 1 h ) / 60 / ( ‘Tf_Wasser_VorL_’ – ‘Tf_Wasser_RückL_’ ) * 1 °C / 1 min
    For Each Row i In Flow Do
     If Flow.Y[i] > 4 Then
       Flow.Y[i] = 4
     ElseIf Flow.Y[i] < -4 Then
       Flow.Y[i] = -4
    //Else Flow = Flow
     End
    End
    Flow

    #33668
    Bernhard Kantz
    Participant

    Für das Abschneiden von Datensätzen an oberen und/oder unteren Grenzen kann die Funktion Clip() verwendet werden. Näheres finden Sie in der Onlinehilfe unter https://weisang.com/dokumentation/clip_de/#.

    #33669
    Robert Demmel
    Participant

    Danke für die schnelle Antwort, (hab sie erst jetzt gelesen), ich dachte mir schon dass flexPRO das einfacher kann!  

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