Expression editor woes.

Report bugs found in TunerPro. Please be sure to include as much info as possible, including system specs, OS, repro steps and TunerPro version number.

Moderators: Mangus, robertisaar, dex

Post Reply
beepee
Posts: 3
Joined: Sun Apr 03, 2011 6:49 pm

Expression editor woes.

Post by beepee » Sun Apr 03, 2011 7:07 pm

Greetings! First I want to say thanks for this excellent program. Nothing I've accomplished wouldn't be possible without TunerPro.

The issue I am running into is with the expression editor. Here is the expression I am trying to use:

(500000.0 * 30) / (POW(2,((X+128)/32)) * 64)

The actual equation is:

rpm = (500000.0 * 30) / ((2 ^ ((X + 128) / 32)) * 64)

(fyi, this is for Bosch Jetronic LH2.4 :wink:)

When this equation is entered, TunerPro fails to recognize the 'X' variable. It is really the POW() function that seems to be 'hiding' it because if I enter this part alone:

POW(2,((X+128)/32)

it still doesn't see X. At this point I tried this to make it see X:

(X * 0) + POW(2,((X+128)/32))

Entering that equation makes TunerPro crash every time :(

Help!

If you want my Jetronic XDFs (for Volvo), start here:
http://forums.turbobricks.com/showthread.php?t=227153

Thanks!

User avatar
Mangus
TunerPro Author
Posts: 1826
Joined: Wed Mar 19, 2003 1:49 pm

Post by Mangus » Mon Apr 04, 2011 8:38 am

(500000.0 * 30) / (POW(2;((X+128)/32)) * 64)

Function parameters are separated by semicolons.

You can also greatly simplify your equation, which will help performance. Some hints:

- Multiply out the numerator
- 64 is a power of 2. Combine it with your POW function.


TunerPro shouldn't crash, so I'll look into that.
***************************************
TunerPro Author
1989 Trans Am

beepee
Posts: 3
Joined: Sun Apr 03, 2011 6:49 pm

Post by beepee » Mon Apr 04, 2011 12:09 pm

Mangus wrote:(500000.0 * 30) / (POW(2;((X+128)/32)) * 64)

Function parameters are separated by semicolons.
D'oh. Thanks. I swear I know how to do this, I have a binch that work! I swear! :oops:
Mangus wrote:
You can also greatly simplify your equation, which will help performance. Some hints:

- Multiply out the numerator
- 64 is a power of 2. Combine it with your POW function.


TunerPro shouldn't crash, so I'll look into that.


I figured it could be simplified, I just got stumped when it barfed on me. I'll try and revise it. Thanks! :)

Post Reply