-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > FPScript > Prüfung von zwei Signalreihen > Reply To: Prüfung von zwei Signalreihen

Wenn die beiden Signale jeweils dieselbe Zeitspur (X-Komponente) haben, reduziert sich das Problem auf das Finden gemeinsamer Indizes nach einer Ereignisisolation.
Eine kleine Klippe ist die Bedingung größer bzw. kleiner statt größer oder gleich bzw. kleiner oder gleich, welche durch die entsprechenden FPScript-Funktionen ValuesAboveLevel() bzw. ValueBelowLevel() realisiert werden. Dies kann man durch Verwendung der jeweiligen anderen Funktion mit dem zusätzlichen Parameterflag EVENT_COMPLEMENT erreichen.
Für die Verknüpfung der beiden Ereignisse stehen die Mengenoperationen auf Indexreihen (IndexAnd(), IndexOr(), IndexNot(), IndexAfter(), IndexBefore()) zur Verfügung. Im vorliegenden Fall leistet IndexAnd() das gewünschte.
Zusammen ergibt sich der FPScrip-Code:
Dim idx1 = ValuesBelowLevel(Signal1, 10, EVENT_INDEX + EVENT_COMPLEMENT)
Dim idx2 = ValuesAboveLevel(Signal2, 2, EVENT_INDEX + EVENT_COMPLEMENT)
Signal1.X[IndexAnd(idx1, idx2)]
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information