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

Paramètres du compte.

Topic

How can I linearize data sets using a characteristic curve?

Page d'accueil ' Communauté ' FPScript ' Comment puis-je linéariser des ensembles de données à l'aide d'une courbe de caractéristiques ?

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33399
    Richard Weisang
    Maître des clés

    I need a way to calibrate my data with a calibration table.

    #33397
    Richard Weisang
    Maître des clés

    I need a way to calibrate my data with a calibration table.

    #33398
    Bernhard Kantz
    Participant

    Using the FPScript function [b]Sample()[/b], you can linearize signals with a characteristic curve. The characteristic curve or calibration table has to be specified as a signal which contains the actual values in the X-component and the set values in the Y-component.
    Create a formula named “_Lin” with the following content:
    [code]
    Arguments s
    Dim table
    table = Signal({0., 1.1, 1.9, 2.99, 3.98, 5.0}, 1.)
    If DataStructure(s) == STRUCT_DATASERIES Then
    s = Signal(s, 1.)
    End
    Sample(table, s)
    [/code]
    You can now linearize your data sets by selecting them in the FlexPro Explorer and dragging and dropping them onto the name of the above formula.

    In the example, the variable table contains the calibration table with the set values for the actual values 0, 1, 2, 3, 4 and 5. You will have to amend this table for your purposes. Alternatively, you can refer to an external data set which contains the table.

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.