-
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
Equal To Operator
- This topic has 3 replies, 2 voices, and was last updated 17 years, 6 months ago by
Hendrik Meyer.
-
AuthorPosts
-
September 6, 2007 at 11:44 pm #12497
Hendrik Meyer
ParticipantHallo, ich hab das alte Probelm lösen können. Wer ahnt auch schon, dass elseif zusammen geschrieben werden muss.
Allerdings bekomme ich nun die Fehlermeldung “Falscher Datentyp”. Leider kann ich in der Hilfe keine Informationen finden.
Bitte um Support.
Dim Turbinendrehzahl, i, Gang, y
Turbinendrehzahl=0 # 10000
Gang=GangposFor Each Value i In Vges Do
If GANG=1 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 1′
Elseif GANG=2 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 2′
Elseif GANG=3 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 3′
Elseif GANG=4 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 4′
Elseif GANG=5 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 5′
Elseif GANG=6 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 6′Return turbinendrehzahl
end
endP.S.: Und wie würde es aussehen müssen, wenn Radwellendrehzahl (x ist Zeit, y sind die relevanten Werte) eine Signal anstatt einer Datenreihe wäre?
Vielen Dank
September 6, 2007 at 11:44 pm #8160Hendrik Meyer
ParticipantHallo, ich hab das alte Probelm lösen können. Wer ahnt auch schon, dass elseif zusammen geschrieben werden muss.
Allerdings bekomme ich nun die Fehlermeldung “Falscher Datentyp”. Leider kann ich in der Hilfe keine Informationen finden.
Bitte um Support.
Dim Turbinendrehzahl, i, Gang, y
Turbinendrehzahl=0 # 10000
Gang=GangposFor Each Value i In Vges Do
If GANG=1 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 1′
Elseif GANG=2 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 2′
Elseif GANG=3 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 3′
Elseif GANG=4 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 4′
Elseif GANG=5 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 5′
Elseif GANG=6 Then
Turbinendrehzahl=Radwellendrehzahl/’Gang 6′Return turbinendrehzahl
end
endP.S.: Und wie würde es aussehen müssen, wenn Radwellendrehzahl (x ist Zeit, y sind die relevanten Werte) eine Signal anstatt einer Datenreihe wäre?
Vielen Dank
September 7, 2007 at 3:07 am #8791Bernhard Kantz
Participant– Use the Equal To Operator (==) instead of the Assignment Operator (=) to compare values in FPScript.
– The Component operator extracts the X, Y- or Z-component from a data set with an aggregate data structure.See also the FlexPro Online Help
Analyzing Data|Reference|FPScript Operators
Analyzing Data|Reference|Data Access|ComponentOctober 1, 2007 at 5:47 pm #8792Bernhard Kantz
ParticipantYou can do this computation much more efficiently if you use the index operator and event isolation functionality to avoid loops on individual values:
Dim idx// setup data series of proer length
Dim Turbinendrehzahl = 0. # NumberOfRows(Vges)// Find all positions where 1st gear was used
idx = ValuesInInterval(Gangpos, 1, 1, EVENT_INDEX)
// set all these postions to a fixed value
Turbinendrehzahl[idx] = Radwellendrehzahl / 'Gang 1'// do the same for the 2nd gear.
idx = ValuesInInterval(Gangpos, 2, 2, EVENT_INDEX)
Turbinendrehzahl[idx] = Radwellendrehzahl / 'Gang 2'// continue for further gears
// would "Radwellendrehzahl" and "Gang x" be data series, you could have a loop running across the gears.
...// return the result
return Turbinendrehzahl
-
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