Pages: [1]
Author Topic: If...Else...  (Read 8500 times)
masterj
Hero Member
*****

Karma: +62/-5
Offline Offline

Posts: 1049



WWW
« on: August 15, 2013, 04:29:20 PM »

Hi, guys!
This might sound stupid but I can't understand in FR where is TRUE and where is FALSE, when it isn't same as examples in top of FR doc. Please look at the attached image and help me identify where is TRUE and where is FALSE line.
Thank you
Logged

ABCD
Full Member
***

Karma: +4/-0
Offline Offline

Posts: 78



« Reply #1 on: August 15, 2013, 07:48:26 PM »

masterj:

You have got it reversed!
IF FALSE, then wdksgv_w /1/ value will go forward.
IF TRUE, then wdksv_w /2/ will go forward and will be averaged by a time filter with time as tfwdks_w to get final value of wdksgv_w /4/.

btw, what is this function?
Logged
masterj
Hero Member
*****

Karma: +62/-5
Offline Offline

Posts: 1049



WWW
« Reply #2 on: August 16, 2013, 01:16:30 AM »

masterj:

You have got it reversed!
IF FALSE, then wdksgv_w /1/ value will go forward.
IF TRUE, then wdksv_w /2/ will go forward and will be averaged by a time filter with time as tfwdks_w to get final value of wdksgv_w /4/.

btw, what is this function?

This is bwdksgv function. Ive almost finished working on throttle plate angle and will share my report on how to disable all the filters, limiters, etc there.

Btw: so /1/ is always false and /2/ is true? What about /3/ or /4/?
Logged

ABCD
Full Member
***

Karma: +4/-0
Offline Offline

Posts: 78



« Reply #3 on: August 16, 2013, 01:37:33 AM »


Btw: so /1/ is always false and /2/ is true? What about /3/ or /4/?

When conditions before "IF" are true:
then, wdksv_w /2/ , pspvmin/1/, tfwdks_w/1/, wdksgv_w/4/ are calculated---> to give wdksgv_w

When conditions before "IF" are false:
then, wdksgv_w /1/ is used---> to give wdksgv_w

Now, you have to see when conditions are true or false.
Logged
masterj
Hero Member
*****

Karma: +62/-5
Offline Offline

Posts: 1049



WWW
« Reply #4 on: August 16, 2013, 03:37:24 AM »

When conditions before "IF" are true:
then, wdksv_w /2/ , pspvmin/1/, tfwdks_w/1/, wdksgv_w/4/ are calculated---> to give wdksgv_w

When conditions before "IF" are false:
then, wdksgv_w /1/ is used---> to give wdksgv_w

Now, you have to see when conditions are true or false.

I understand it Smiley And by the looks of it I kinda found out answer to my question. These /1/; /2/; ... are there to only show how many things are affected by TRUE of FALSE of IF. Where IF arrow points is always TRUE, another line is always FALSE. Easy peasy Smiley
Logged

masterj
Hero Member
*****

Karma: +62/-5
Offline Offline

Posts: 1049



WWW
« Reply #5 on: August 16, 2013, 05:37:14 AM »

One more situation, when IF paths are split up... Now we have two IF and how would I know which path is connected to which IF?  Also these IFs are also some paths of another statement...
Logged

ABCD
Full Member
***

Karma: +4/-0
Offline Offline

Posts: 78



« Reply #6 on: August 18, 2013, 09:16:15 PM »

^^^^
Basically, an input is averaged over the time "TFWDKSOF".
IV=initial value starts with 0.

When, IF/2/ is true then this averaging is done.
When, IF/3/ is true then this averaging is started again from scratch with initial value as 0.
Logged
masterj
Hero Member
*****

Karma: +62/-5
Offline Offline

Posts: 1049



WWW
« Reply #7 on: August 19, 2013, 01:58:44 PM »

^^^^
Basically, an input is averaged over the time "TFWDKSOF".
IV=initial value starts with 0.

When, IF/2/ is true then this averaging is done.
When, IF/3/ is true then this averaging is started again from scratch with initial value as 0.

And final question: why there's marked /1/ and /4/ then? Smiley
Logged

nyet
Administrator
Hero Member
*****

Karma: +608/-168
Offline Offline

Posts: 12271


WWW
« Reply #8 on: August 19, 2013, 02:00:56 PM »

i think the /# just indicates in which order they are executed/evaluated in the CPU

although i could be reading the FR wrong. my german sucks.
Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
ABCD
Full Member
***

Karma: +4/-0
Offline Offline

Posts: 78



« Reply #9 on: August 19, 2013, 08:10:38 PM »

The number scheme is just to differentiate. Like if you seen in first snapshot wdksgv_w has 1 & 4.
So, just mentioning wdksgv_w wont make much sense and also to know where it is coming from.

Nothing to do with order of execution. Everyhting is processed parellely. Though not 100 % sure on this  Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.019 seconds with 16 queries. (Pretty URLs adds 0s, 0q)