Page 5 of 5 FirstFirst 12345
Results 41 to 44 of 44

Thread: G35 carputer climate controls

  1. #41
    Newbie
    Join Date
    Oct 2010
    Location
    Canada
    Posts
    55
    Okay so quick question, In MDX there is an option to have the buttons execute a command. So logcally, I was thinking of just creating a command, then have the command execute a number of things, such as toggle output and change variable image. Ho do I actualy implement the command in the fusioncontrolcenter config? There's the COM section that has a section for commands, but my understanding is that this is for external communication, such as passing commands from RRfusion to MDX and vise versa, correct?

    I tried creating commands and putting them in this section anyway, but haven't been successful. Perhaps there's something simple that I'm missing that someone could correct for me:

    <!-- Begin COM -->
    <com status="enabled">
    <commands>
    </commands>
    <executable_commands>
    <command id="defrost" minimum_delta_vote_time="20">
    <do function="trigger output" functionTargetID="defrost" vote_opinion="on" vote_priority="medium"></do>
    <do function="enable or disable" functionTargetID="NINJABUTTON_defrost" vote_opinion="Disable" vote_priority="Low"></do>
    <do function="change variable" functionTargetID="defrost" vote_opinion="+1" vote_priority="medium"></do>

    </command>
    </executable_commands>
    </com>
    <!-- End COM -->
    </general>



    <button id="NINJABUTTON_Defrost" enabled="yes" function="execute command" functionTargetID="defrost" vote="attached" vote_opinion="run" vote_priority="High">
    <images imagePrimary="content\images\button_images\Defrost .png" imageSecondary="content\images\button_images\Defro st.png" imageDisabled="content\images\button_images\Defros tdown.png" imagePushed="content\images\button_images\Defrostd own.png"></images>
    <display size="115,70" location="48,221" page="0" z_order="0.9"></display>
    <vote_options minimum_delta_vote_time_down="20" minimum_delta_vote_time_up="20"></vote_options>
    <up_click up_click_function="change variable" up_click_functionTargetID="defrost" up_click_vote_opinion="run" up_click_vote="attached" up_click_vote_priority="Low"></up_click>
    </button>

    With this code, MX opens fine, but when I click the defrost button, I get a message claiming that the specified file cannot be found? All I want is for pressing a button in MDX to perform multiple actions, it really shouldn't be that difficult, but for someone with as little programming knowledge as myself, it is becomming overwhelming. Any help would as always be greatly appreciated.


    P.S. For the button "vote opinion" I put in "run" as I have no idea what this should be. Probably half the reason why things aren't working...lol

  2. #42
    MySQL Error soundman98's Avatar
    Join Date
    Jan 2008
    Location
    on the border of northern IL/IN
    Posts
    5,820
    due to the lack of responses here, i think it might be a better idea to post some of your FB questions in the FB forum-- i think they should get a much faster response there(i have zero knowledge of Fb programming).

  3. #43
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,049
    Quote Originally Posted by doctr_nick View Post
    Okay so quick question, In MDX there is an option to have the buttons execute a command. So logcally, I was thinking of just creating a command, then have the command execute a number of things, such as toggle output and change variable image. Ho do I actualy implement the command in the fusioncontrolcenter config? There's the COM section that has a section for commands, but my understanding is that this is for external communication, such as passing commands from RRfusion to MDX and vise versa, correct?

    I tried creating commands and putting them in this section anyway, but haven't been successful. Perhaps there's something simple that I'm missing that someone could correct for me:

    <!-- Begin COM -->
    <com status="enabled">
    <commands>
    </commands>
    <executable_commands>
    <command id="defrost" minimum_delta_vote_time="20">
    <do function="trigger output" functionTargetID="defrost" vote_opinion="on" vote_priority="medium"></do>
    <do function="enable or disable" functionTargetID="NINJABUTTON_defrost" vote_opinion="Disable" vote_priority="Low"></do>
    <do function="change variable" functionTargetID="defrost" vote_opinion="+1" vote_priority="medium"></do>

    </command>
    </executable_commands>
    </com>
    <!-- End COM -->
    </general>



    <button id="NINJABUTTON_Defrost" enabled="yes" function="execute command" functionTargetID="defrost" vote="attached" vote_opinion="run" vote_priority="High">
    <images imagePrimary="content\images\button_images\Defrost .png" imageSecondary="content\images\button_images\Defro st.png" imageDisabled="content\images\button_images\Defros tdown.png" imagePushed="content\images\button_images\Defrostd own.png"></images>
    <display size="115,70" location="48,221" page="0" z_order="0.9"></display>
    <vote_options minimum_delta_vote_time_down="20" minimum_delta_vote_time_up="20"></vote_options>
    <up_click up_click_function="change variable" up_click_functionTargetID="defrost" up_click_vote_opinion="run" up_click_vote="attached" up_click_vote_priority="Low"></up_click>
    </button>

    With this code, MX opens fine, but when I click the defrost button, I get a message claiming that the specified file cannot be found? All I want is for pressing a button in MDX to perform multiple actions, it really shouldn't be that difficult, but for someone with as little programming knowledge as myself, it is becomming overwhelming. Any help would as always be greatly appreciated.


    P.S. For the button "vote opinion" I put in "run" as I have no idea what this should be. Probably half the reason why things aren't working...lol
    Yeah, "run" isn't going to do diddly.

    What you want to do is have it set a variable to a value, say 1. Then a logic node that does all the "commands" you want as well as sets the same variable to another resting value, say 0 as long as the variable is not resting.

    if(var==1) { do stuff; var = 0; }


    And I get daily notifications of topics in the FB forum. It is just chance that I stumble upon a thread outside of the FB forum asking FB questions.
    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

  4. #44
    Newbie
    Join Date
    Oct 2010
    Location
    Canada
    Posts
    55
    Quote Originally Posted by 2k1Toaster View Post
    Yeah, "run" isn't going to do diddly.

    What you want to do is have it set a variable to a value, say 1. Then a logic node that does all the "commands" you want as well as sets the same variable to another resting value, say 0 as long as the variable is not resting.

    if(var==1) { do stuff; var = 0; }


    And I get daily notifications of topics in the FB forum. It is just chance that I stumble upon a thread outside of the FB forum asking FB questions.
    Ok. I've browsed the FB forum a bit to look for some more coding examples to see how exactly to implement this and I'm pretty sure I got it right. I now have my buttons and secondary images working the way they should, but am having troubles programming the buttons to be momentary each time the button is clicked, regardless of which state the variable is in (resting or not resting). I've posted over in the FB forum to explain a little more about what's going on.

Page 5 of 5 FirstFirst 12345

Similar Threads

  1. Seperate monitor vs seperate carputer vs Dakota Digital.
    By stonestatue in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 9
    Last Post: 09-30-2010, 01:48 PM
  2. Renault laguna II Steeing Wheel Controls -> USB
    By d_mc_a in forum Input Devices
    Replies: 1
    Last Post: 03-23-2008, 02:18 PM
  3. 99 Acura TL carputer project pics
    By Darkshear in forum Show off your project
    Replies: 15
    Last Post: 08-23-2007, 01:14 AM
  4. Replies: 5
    Last Post: 05-31-2007, 05:46 PM
  5. Carputer | n00b | 91' Subaru Legacy RS
    By bones in forum Newbie
    Replies: 4
    Last Post: 07-10-2005, 11:09 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
  •