-
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
Datensatz filtern
- This topic has 6 replies, 3 voices, and was last updated 17 years, 10 months ago by
Christian Rathgeber.
-
AuthorPosts
-
May 4, 2007 at 5:22 pm #12635
Christian Rathgeber
ParticipantIs it somehow possible to filter a Datensatz so that only every tenth element of it will be left?
Ist es möglich einen Datensatz so zu filtern dass nur noch jedes 10. Element übrig bleibt?
(Ich hab nämlich ungefähr 10 mal soviele Werte im Zeitstempeldatensatz wie in einem anderen und um sie graphisch darzustellen muss der Datensatz gefiltert werden)May 4, 2007 at 5:22 pm #8298Christian Rathgeber
ParticipantIs it somehow possible to filter a Datensatz so that only every tenth element of it will be left?
Ist es möglich einen Datensatz so zu filtern dass nur noch jedes 10. Element übrig bleibt?
(Ich hab nämlich ungefähr 10 mal soviele Werte im Zeitstempeldatensatz wie in einem anderen und um sie graphisch darzustellen muss der Datensatz gefiltert werden)May 4, 2007 at 6:11 pm #9028Bernhard Kantz
ParticipantIn this case you can use the FPScript-function Reduce. It reduces the number of values in a data set.
Example:
Reduce(DataSet, 10)
July 18, 2008 at 4:49 am #9029Stefan Schreiter@gmx.de
MemberHallo,ich bin noch ein Neueinsteiger bei Flexpro und habe ein ähnliches Problem:
Ich möchte einen Auto-Import-Filter schreiben um eine .txt-Datei einzulesen. Die Messdaten haben folgende Struktur:
Ident Location Serial No Sample Rate Store Rate 2 Code TimeDate Pgessamt Last 1 1 12.06.2008 10:10:00 0,0 0,0 1 16.08.2008 10:10:02 0,0 0,0 1 14.09.2008 10:16:04 2,0 5,0 1 14.07.2008 10:15:06 80,0 5,0 ......
Hierbei sollen nur die Daten ab Zeile 7 importiert werden. Weiterhin müssen die Zeilen/Datensätze entfernt werden, bei denen die Summe der Messwerte (Spalte 3 und 4) Null ergibt.
Da ich noch nicht viel mit VBA usw. gearbeitet habe wäre ich für jegliche Lösungsansätze/Prozedur dankbar!
July 21, 2008 at 7:37 pm #9030Bernhard Kantz
ParticipantYou don’t need a VBA macro to realize these steps:
1) Use the text data import wizard and save your settings as new file type.
2) Create a FPScript formula which calculates the sum of column 3 and column 4:'Column3' + 'Column4'
3) Use the event isolation analysis object to remove the values:
– Event: Values in interval
– Lower border: 0
– Upper border: 0
– Result: Extract values + Form complementYou can reuse these analysis objects for different measurements using the (De)active Folder command.
Please see also
FlexPro Help
Creating Templates for Analysis
Text Data Import WizardJuly 22, 2008 at 6:15 am #9031Stefan Schreiter@gmx.de
MemberVielen Dank für Ihre Antwort.
Mit dieser Möglichkeit werden leider nur die Nullen entfernt in der gebildeten Summenformel.
Es sollen allerdings in den originalen Messwerten der Spalte 3 und 4 die Zeilen entfernt werden,in denen in “beiden” Spalten eine 0 steht.Vorher:
Ident Location Serial No Sample Rate Store Rate 2 Code TimeDate Pgessamt Last 1 1 12.06.2008 10:10:00 0,0 0,0 1 16.08.2008 10:10:02 0,0 0,0 1 14.09.2008 10:16:04 2,0 5,0 1 14.07.2008 10:15:06 80,0 5,0
Nachher:
Code TimeDate Pgessamt Last 1 1 14.09.2008 10:16:04 2,0 5,0 1 14.07.2008 10:15:06 80,0 5,0
Ich hatte mich vorher wohl leider nicht exakt ausgedrückt.
July 22, 2008 at 10:49 pm #9032Bernhard Kantz
ParticipantUse the result Indices of the values instead of Extract values in the Event Isolation analysis object.
After that you can use the index operator in a new FPScript formula. The index operator can extract individual values or sections from data series, data matrices, signals, signal series and space curves.Formula 1:
Column1[EventIsolation]Formula 2:
Column2[EventIsolation] -
AuthorPosts
- You must be logged in to reply to this topic.
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