I keep getting an error message for this function:
Function Gear(RPM As Double, Gear1 As Double)
I'm not sure what's wrong with the function. Error says Block End If.![]()
Please Login or Register to view this content.
I keep getting an error message for this function:
Function Gear(RPM As Double, Gear1 As Double)
I'm not sure what's wrong with the function. Error says Block End If.![]()
Please Login or Register to view this content.
Last edited by Fotis1991; 10-21-2013 at 08:28 AM. Reason: Pls use code tags around your code.
![]()
Please Login or Register to view this content.
Last edited by AB33; 10-21-2013 at 08:34 AM.
Thanks, I tried that. Now I just get a zero value for the function. I'm not sure if I defined the inputs wrong or what. RPM is between 3000 and 7200. Gear1 is between 1.45 and 3.20.
You are probably getting this line
Gear = Gear1
Since your gear starts at 1, the else may return 0.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks