Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > FB Software


Reply
 
Share Thread Tools Display Modes
Old 04-16-2008, 06:21 AM   #1
FLAC
 
Join Date: Oct 2006
Location: Las Vegas
Posts: 1,283
h3rk will become famous soon enough
Logic question - MDX - placing nodes correctly?

Quote: Originally Posted by 2k1Toaster View Post
...
Make a Brain, make an Analogue to your temp sensor, make a variable (numeric).

Then make the following if statement:

...

<I didn't want to hijack -zip-'s thread more than I have already, and I'm not sure if this would clutter the tutorial so...>

I need help thinking in fusion logic terms.

Can you please explain what the green arrow does here? What exactly does it represent?

For me, looking at it, it looks like this function assigns the voltage value of the analog input to Evaluated_Temperature, then converts it to Temperature C, and then to F, then the green arrow being there for the right side of the node if this function is used elsewhere (input to another node, maybe as a custom function). So in looking at it, I would think that Evaluated_Temperature in this case would be over by the arrow, after the conversion.

Is there another way for me to think about this so that it makes better sense?

The error message that shows when I try to link the output node to the CtoF function's output, leads me to believe that the output is infact the result of the outer If/then statement, which has no meaning I assume if this loop isn't nested in another one, the function evaluation just moves to the next "root function".

Doing it the way I initially thought it goes, gives an Invalid Node Link error though.



It just seems backwards to me... and I don't want to carry this errored thinking into more functions.
thx.

Last edited by h3rk; 04-16-2008 at 06:55 AM.
h3rk is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 04-17-2008, 02:33 AM   #2
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
The way you think is right, is right. The image I posted is actually incorrect. I blame it on being burnt out.

But if you want a more detailed answer other than you are right and that reference is wrong, here it is:

when the if/then is evaluated is starts at the output and works inwards. It is a recursive function. So it looks at the main node, then its child nodes until there are no more children. So it evaluates the furthest nested node first. So with the variable-set, everything before it gets stored in the variable. So in what you are trying to do is correct.

The problem is the configurator checked if it was a variable or not, and if it was a boolean or numeric varaible. This is all fine and dandy for varaible-get modules, but variable-set modules are "typeless" so to speak as in they just pass through the previous value, and the configurator was not checking for this. It is now though and you can link it the proper way now.

I guess I can test out my updater.
2k1Toaster is online now   Reply With Quote
Old 04-17-2008, 04:04 AM   #3
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Also I just noticed I was missing a tag in the main MDX program relating to this, so the new version I am uploading now will fix both these issues.
2k1Toaster is online now   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
General question about the RR program logic DaveB Road Runner 1 03-20-2006 12:26 AM
Accord lcd question - placing lcd deeper in dash mykolJay Fabrication 9 09-29-2004 02:02 PM



All times are GMT -5. The time now is 08:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics