Page 15 of 23 FirstFirst ... 567891011121314151617181920212223 LastLast
Results 141 to 150 of 223

Thread: Beginning of an Automatic Climate Control System, all juiced up on Fusion

  1. #141
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    that's exactly what I should have done. doh. Thanks.

  2. #142
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    And the best part is a function holds the modules properties with the designer file.
    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. #143
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    better now to realize this than after 12+ of these were done. Excellent advice.

  4. #144
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    I know I can't do one-to-many with an input node, but inside a function, can I reference the same node multiple times, so I only need 1 connection to a variable externally inside a root function?

    Edited for clarity.

  5. #145
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Quote Originally Posted by h3rk View Post
    I know I can't do one-to-many with an input node, but inside a function, can I reference the same node multiple times, so I only need 1 connection to a variable externally inside a root function?

    Edited for clarity.
    yes I think if I understand you correctly. You mean have the function with say 1 input. But inside the function you have input1 this and input1 that, and so on right? Yup. You can also reference functions from functions (I am not sure I enabled the configurator to do this in fear of infinite recursion loops but MDX will do it if you tell it to).

    If you take a look at the IR distance sensor function included in the config functions that explains what I am saying and think you are too.
    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

  6. #146
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    IR Pic:




    That is all the same input, just used over and over and over and over
    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

  7. #147
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by 2k1Toaster View Post
    yes I think if I understand you correctly. You mean have the function with say 1 input. But inside the function you have input1 this and input1 that, and so on right? Yup. You can also reference functions from functions (I am not sure I enabled the configurator to do this in fear of infinite recursion loops but MDX will do it if you tell it to).

    If you take a look at the IR distance sensor function included in the config functions that explains what I am saying and think you are too.
    So, like all of your references to "Sensor Input" :
    <variable do="get">Sensor Input</variable>

    If they're named the same, they are the same. That's just what I was hoping. I just wish I could read and write the code better. This will be plenty of good practice. Actually, I'll just build it in the configurator and rename the variables later.

  8. #148
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Well sensor input is a temporary input variable basically. What happens is when the program hits a function it takes its known original xml, and replaces all instance off the input reference name with the name tied to its input in the code so it is seamless that way. Once the function is evaluated, the input variable name can no longer be referenced because it doesnt exist outside the scope of the function.
    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

  9. #149
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    As a side, you notice that I finally got an icon for the configurator?
    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

  10. #150
    FLAC
    Join Date
    Oct 2006
    Location
    Las Vegas
    Posts
    1,286
    Quote Originally Posted by 2k1Toaster View Post
    Well sensor input is a temporary input variable basically. What happens is when the program hits a function it takes its known original xml, and replaces all instance off the input reference name with the name tied to its input in the code so it is seamless that way. Once the function is evaluated, the input variable name can no longer be referenced because it doesnt exist outside the scope of the function.
    Perfect. Well done.

    Quote Originally Posted by 2k1Toaster View Post
    As a side, you notice that I finally got an icon for the configurator?
    I just noticed it today, it took a restart before the desktop icon updated. Looks good.


    I'm still going to have 34 external functions (2 x 6 output bits 1 x 5 output bits, and then the else function-counterparts) I would like to be able to re-use some, but the dial functions and settings are too unique.

Similar Threads

  1. AIMEE Climate Control POLL
    By Danceheaven in forum Software & Software Development
    Replies: 25
    Last Post: 01-14-2010, 09:38 AM
  2. Replies: 85
    Last Post: 07-09-2007, 04:44 AM
  3. Digital dash and climate control???
    By yamathegreat in forum General Hardware Discussion
    Replies: 3
    Last Post: 10-31-2005, 04:41 PM
  4. System control wire on amp
    By dudah85 in forum General Hardware Discussion
    Replies: 3
    Last Post: 09-13-2001, 08:09 AM
  5. Replies: 22
    Last Post: 08-13-2001, 01:42 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
  •