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

formula to put at 0 data between -5 and +5

Page d'accueil ' Communauté ' Généralités ' formule à mettre à 0 données entre -5 et +5

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #34025
    maraval frédéric
    Participant

    We are using flexpro standard. We have data name tension with 2 columns one X time event and the other Y tension value. We want to put at zero some tension value comprising between two level ( ex -5 at +5 ) from a list of data.
    thanks for your help

    #34027
    maraval frédéric
    Participant

    We are using flexpro standard. We have data name tension with 2 columns one X time event and the other Y tension value. We want to put at zero some tension value comprising between two level ( ex -5 at +5 ) from a list of data.
    thanks for your help

    #34026
    Bernhard Kantz
    Participant

    In this case you can use the FPScript-function [b]ValuesInInterval[/b] and the [b]Index Operator[/b].
    – Calculate the indices of the values between -5 and 5.
    – Set the y-values of these indices to 0.

    [code]
    Dim Sig = Tension
    Sig.Y[ValuesInInterval(Sig, -5.00000000000000, 5.00000000000000, EVENT_INDEX)] = 0
    Sig
    [/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.