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

Script for Splitting the signal

Page d'accueil ' Communauté ' FPScript ' Script pour diviser le signal

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33572
    Karthick Lakshmanan
    Participant

    I Am new to Fp Scrpit
    Am having a signal with RPM in Y & time in X axis
    I need to plot Clockwise & counter clockwise as a two different signals from the original signal
    Kindly help me in this

    Regards,

    Karthick.L

    #33574
    Karthick Lakshmanan
    Participant

    I Am new to Fp Scrpit
    Am having a signal with RPM in Y & time in X axis
    I need to plot Clockwise & counter clockwise as a two different signals from the original signal
    Kindly help me in this

    Regards,

    Karthick.L

    #33573
    Bernhard Kantz
    Participant

    To split a signal at a certain level (e.g. 0 in the question) one can use the FPScript functions [b]ValuesAboveLevel()[/b] and [b]ValuesBelowLevel()[/b]. In the available example a FPScript formula like

    [code][ ValuesAboveLevel(Speed, 0, EVENT_SETVOID),
    ValuesBelowLevel(Speed, 0, EVENT_SETVOID) ][/code]

    creates a list with two named entries for the parts of the signal [b]Speed[/b] ? 0 and ? 0. The parts have the same size as the original signal, the values not satisfying the condition are set to the floating point void value (? or NaN), as specified by the third argument [b]EVENT_SETVOID[/b]. Other operations can be looked up in the Online Help (Index: [i]ValuesAboveLevel (FPScript)[/i]).

    One can achieve the same results by using the [b]Event Isolation[/b] on the desired signal avoiding the need to write any FPScript code.

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