Results 1 to 3 of 3

Thread: Logic question - MDX - placing nodes correctly?

  1. #1
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286

    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.

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

  3. #3
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    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.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

Similar Threads

  1. General question about the RR program logic
    By DaveB in forum Road Runner
    Replies: 1
    Last Post: 03-20-2006, 12:26 AM
  2. Accord lcd question - placing lcd deeper in dash
    By mykolJay in forum Fabrication
    Replies: 9
    Last Post: 09-29-2004, 02:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •