Results 1 to 5 of 5

Thread: Variables for FuseGL FB6

  1. #1
    Newbie
    Join Date
    Jul 2011
    Posts
    14

    Variables for FuseGL FB6

    FuseGL has no options to add variable and I need to integrate my HVAC heater controls. First I am working on my blower motor switch. A simple switch where if switch is in the OFF position, the ignition (polarity +) makes the OFF position wire hot and the blower speed positions 1-5 are not hot. When switching blower motor swtich from OFF to position 1, the ignition wire connects to position 1 and OFF position wire is not hot anymore. If I switch the blower to position 2, the OFF position, position 1, 3, 4, and 5 are not hot. This switch is manual and I am going to integrate the blower motor to my fusion brain using six 12vdc relays.

    So you probably have an idea of what I'm trying to accomplish, the thing is I don't know how to program the fusion brain with code. Since there are no variables in the FuseGL program, I need help creating the code and not sure which file to edit and I think I need to create variables with boolean or instances so if I click on a button to turn it on, the result will turn off any buttons that are on and only one button will be on at a time. Can anyone write out some code so I have an idea how to write it so if I turn a button on, it will turn on the digital output and turn all others off?

    My vehicle is a 2000 Chevrolet Monte Carlo. It has manual heater controls with vacuum lines. I replacing the manual heater control with a digital heater control with vacuum lines out of a 1999 Chevy Lumina, but the 1992 service manual has the correct wiring for the digital controller.

    Name:  HVAC_01.jpg
Views: 333
Size:  79.4 KB

    Here are the parts I'm using to integrate my HVAC: TYCO 12vdc relays:

    Name:  TYCO.jpg
Views: 224
Size:  60.0 KB

    PC board:

    Name:  PCboard.jpg
Views: 215
Size:  108.6 KB

    AC Delco 15306155 wire harness so I don't have to cut into my factory harness:

    Name:  15306155_01.jpg
Views: 213
Size:  62.2 KB

    Name:  15306155_02.jpg
Views: 218
Size:  62.0 KB

    Here is the case I made for the FBv6. It's made of ABS plastic Metra 89-00-9032 and plastic standoffs:

    Name:  FBv6_01.jpg
Views: 223
Size:  46.1 KB

    Name:  FBv6_02.jpg
Views: 219
Size:  38.7 KB

    The other case is just for my carputer's power supply:

    Name:  FBv6_03.jpg
Views: 196
Size:  48.2 KB

    On my FBv6, the digital output 25 is stuck on the on mode, oh well:

    Name:  FBv6_04.jpg
Views: 203
Size:  49.2 KB

    My Analog HVAC controller with vacuum lines:

    Name:  HVAC_01.jpg
Views: 333
Size:  79.4 KB

    Name:  HVAC_02.jpg
Views: 201
Size:  91.7 KB

    Name:  HVAC_03.jpg
Views: 223
Size:  81.2 KB

    Simply unplug the blower motor harness and connect my white wire harness adapter:

    Name:  HVAC_04.jpg
Views: 201
Size:  103.1 KB

    I soldered 18 AWG wire to the PC board:

    Name:  HVAC_05.jpg
Views: 203
Size:  100.9 KB

    The reverse side of PC board has my relays:

    Name:  HVAC_06.jpg
Views: 200
Size:  86.2 KB

    Name:  HVAC_07.jpg
Views: 212
Size:  74.7 KB

    Now I can connect my harness to the blower harness and solder my wires to Cat6 wire that I ran from the trunk to my concoction. The Cat6 wires are nice because they have a bundle of 20-some gauge wire so it doesn't bulk under the carpet.

    Name:  HVAC_08.jpg
Views: 195
Size:  73.5 KB
    Last edited by venfayon; 10-03-2012 at 03:26 PM.

  2. #2
    Constant Bitrate
    Join Date
    Jun 2004
    Posts
    148
    "Alpha Release"
    Good Luck. I haven't seen an update in a while. I think you can do variables inside the config XML file.
    You might check out my thread on using VB.net - it's getting somewhere because of Sonic (can control outputs & read inputs, obviously your variables are whatever you want)

  3. #3
    Newbie
    Join Date
    Jul 2011
    Posts
    14
    Here is the xml code for two of my buttons, button 0 and button 1: I'm pretty sure I need a if, then statement to make if button 0 is on, it automatically turns off button 1. Also if I turn on button 1, it will automatically turn off button 0. I will have a total of six buttons. Button 0-5

    <?xml version="1.0" encoding="utf-8"?>
    <FuseGL_User_Settings>
    <User_Object type="FuseGL_Object">
    <setting type="string" name="GL - BTN - DO[0,0]" />
    <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.UserButtonBackground" />
    <image_hover location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.BaseButtonHover" />
    <text text="Toggle: 0" />
    <size width="120" height="30" />
    <location x="135" y="135" z="0" alignment="L" />
    <setting type="int" border_size="1" />
    <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
    <events>
    <startup action="FuseGL.ExecuteCode" inputArgs="ChangeTextOnDigitalOutputChange.cs;Fuse GL_TextManipulation.InternalFlyCompile_ChangeTextO nDigitalOutputChange;ChangeButtonTextOnDigitalOutp utPersistant;{FB.DigitalOutput(0.0)};{this.text};T urn off: 0;Turn on: 0;" outputTo="this.text.text" />
    <onmousedown action="FB.ToggleDigitalOutput" inputArgs="Port:0.0" />
    </events>
    </User_Object>
    <User_Object type="FuseGL_Object">
    <setting type="string" name="GL - BTN - DO[0,1]" />
    <image location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.UserButtonBackground" />
    <image_hover location="internal" path="FuseGL.Configurator.Configurator_IMG_Resourc es.BaseButtonHover" />
    <text text="Toggle: 1" />
    <size width="120" height="30" />
    <location x="135" y="195" alignment="left" z="0.0" />
    <setting type="int" border_size="1" />
    <setting type="bool" mouse_cursor_to_hand_on_hover="true" />
    <events>
    <startup action="FuseGL.ExecuteCode" inputArgs="ChangeTextOnDigitalOutputChange.cs;Fuse GL_TextManipulation.InternalFlyCompile_ChangeTextO nDigitalOutputChange;ChangeButtonTextOnDigitalOutp utPersistant;{FB.DigitalOutput(0.1)};{this.text};T urn off: 1;Turn on: 1;" outputTo="this.text.text" />
    <onmousedown action="FB.ToggleDigitalOutput" inputArgs="Port:0.1" />
    </events>
    </User_Object>
    </FuseGL_User_Settings>

  4. #4
    Newbie
    Join Date
    Jul 2011
    Posts
    14
    This is what I came up with so far, not sure about variable name. A guy from work said to create an instance. The program describes fusion brain and ports as (0,0), (0,1) The (0...is the fusion brain number, I can connect up to 15 fusion brains. The ...,0) is the port number so fusion brain number 0 on port 0 is (0,0). Fusion brain 0 on port 1 is (0,1). I'm hoping by adding the following if, then statement it will automatically turn off all ports except the port that is turned on.

    <rule>
    <if>
    <conditions>
    <condition var="GL - BTN - DO[0,0]" operator="true"></condition>
    <!-- more conditions possible -->
    </conditions>
    <then>
    <startup action="FB.ToggleDigitalOutput" inputArgs="Port:0.1"/>
    </then>
    </if>
    <elseif>
    <condition var="GL - BTN - DO[0,1]" operator="false"></condition>
    <statements>do nothing</statements>
    </elseif>
    <else>
    <statements></statements>
    </else>
    </rule>
    Last edited by venfayon; 10-06-2012 at 04:02 PM.

  5. #5
    Newbie
    Join Date
    Jul 2011
    Posts
    14
    I think instead of using FB.ToggleDigitalOutput, I should use FB.DigitalOutputSet for it to turn off the fusion brain port. Any suggestions would help. Of course according to basic commands:

    high = Switch an output pin on
    low = Switch an output pin off
    toggle = Change an output pin between on and off

    When I change FB.ToggleDigitalOutput to FB.LowDigitalOutput so the second button would ideally switch off the first, but nothing happens. I've tried different combinations and case sentivity and placement of the word low and high, but toggle works.
    Last edited by venfayon; 10-08-2012 at 06:54 PM.

Similar Threads

  1. FuseGL software doesn't work need new software
    By venfayon in forum FB Software
    Replies: 2
    Last Post: 10-03-2012, 03:31 PM
  2. FuseGL Manual - Work in Progress
    By Grrrmachine in forum FB Documentation and Tutorials
    Replies: 2
    Last Post: 06-12-2012, 03:06 PM
  3. RR Strings Variables
    By ssteger in forum VaultWiki
    Replies: 0
    Last Post: 10-21-2009, 02:33 PM
  4. Incrementing variables
    By JiC in forum FB Software
    Replies: 5
    Last Post: 12-21-2008, 11:11 PM
  5. variables??
    By liquid_smoke in forum Road Runner
    Replies: 8
    Last Post: 06-07-2006, 02:44 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
  •