-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
how do i return multiple datasets
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 16 Jahren, 3 Monaten von Martin Kneppe aktualisiert.
-
AutorBeiträge
-
August 27, 2008 um 7:55 pm Uhr #12485Martin KneppeMitglied
I am currently using FlexPro Demo.
The first simple script i wrote is appended below.
I am trying to get all slopes from two datasets and evaluate the position and the time-shift between the two datasets. As result i get the Position and the time-shift as a list of values.
How do i return both lists as two new dataset ?Dim Array1,Array2,Position,Difference
Dim i,a,b,cArray1=Slopes(‘DSS 1 SI’, 2, 1, 1, EVENT_POSITIVE)
Array2=Slopes(‘DSS 1 SI’, 2, 1, 1, EVENT_NEGATIVE)a=NumberOfRows(Liste1);
b=NumberOfRows(Liste2);
if a>b Then
c=b
else
c=a
EndPosition=0#2#(c+5)
Difference=0#(c+5)FOR i = 0 TO c-1 DO
Position[0]=Array1
Position[1]=Array2
Difference=Liste2-Liste1
END
Return Signal(Position,0.1),Signal(Difference,0.1)]August 27, 2008 um 7:55 pm Uhr #8153Martin KneppeMitgliedI am currently using FlexPro Demo.
The first simple script i wrote is appended below.
I am trying to get all slopes from two datasets and evaluate the position and the time-shift between the two datasets. As result i get the Position and the time-shift as a list of values.
How do i return both lists as two new dataset ?Dim Array1,Array2,Position,Difference
Dim i,a,b,cArray1=Slopes(‘DSS 1 SI’, 2, 1, 1, EVENT_POSITIVE)
Array2=Slopes(‘DSS 1 SI’, 2, 1, 1, EVENT_NEGATIVE)a=NumberOfRows(Liste1);
b=NumberOfRows(Liste2);
if a>b Then
c=b
else
c=a
EndPosition=0#2#(c+5)
Difference=0#(c+5)FOR i = 0 TO c-1 DO
Position[0]=Array1
Position[1]=Array2
Difference=Liste2-Liste1
END
Return Signal(Position,0.1),Signal(Difference,0.1)]August 28, 2008 um 6:11 pm Uhr #8783Bernhard KantzTeilnehmerFor each dataset you have to create your own FPScript formula. Create two new formulas and use the List Element Operator to take an element from a list.
Example:
Formula1 with the name “ListFormula”
return [<value1>1, <value2>2]Formula2:
ListFormula.Value1
or
ListFormula.[“Value1”]
or
ListFormula.[0]Formula3:
ListFormula.Value2 -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.