Page 1 of 5 12345 LastLast
Results 1 to 10 of 41

Thread: Need Help with MDX

  1. #1
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293

    Need Help with MDX

    2 Temp Sensors

    I want to keep the graphics that come with the example skin and have the inside and outside temp graphics.

    Want to also have the temperature numerically and have the graphs move as well.

    Cant figure out how to get the graphs to work or add the temp number numerically.

    Played with the configurator nicely done btw, but could not figure the graph movement, or where the heck you put the port for the sensor and link it to the graph.

    I know its beta so little docs are available yet, if someone could point in the right direction.

    Tyvm for your help.
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  2. #2
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by -zip- View Post
    2 Temp Sensors

    I want to keep the graphics that come with the example skin and have the inside and outside temp graphics.

    Want to also have the temperature numerically and have the graphs move as well.

    Cant figure out how to get the graphs to work or add the temp number numerically.

    Played with the configurator nicely done btw, but could not figure the graph movement, or where the heck you put the port for the sensor and link it to the graph.

    I know its beta so little docs are available yet, if someone could point in the right direction.

    Tyvm for your help.
    I've been through so many iterations of the skin file I cant even remember what the example looks like! Is it is the Nissan style one?

    By graphs you mean the circle arches correct? The circle arches are multi-images with the auto load feature. If you look in the code there are 2 tags that tell it what to monitor. If you want to monitor a variable (i.e. an evaluated number, so 75 degrees instead of 3.2 volts or something) then change the monitor type to variable, and the monitor ID to the ID of the variable.

    Here is a sample code for a text label:

    Code:
        <text_label id="OutsideTemperature_Guage_TextIndicator" text="00" auto_monitor="variable" auto_monitorTarget="Variable_OutsideTemperature">
          <font font_id="LED50" font_size="40"></font>
          <display location="97,191" page="0"></display>
          <config decimals="1" max_size="77,32"></config>
        </text_label>
    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
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    yep perfect, will give it a spin tomorrow.
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  4. #4
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Quote Originally Posted by -zip- View Post
    yep perfect, will give it a spin tomorrow.
    sounds good let me know if it works.
    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

  5. #5
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    ...ugh wrong ports i'm such a noob.

    Thanks Green, nice to know how to work the Debug feature LOL.
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  6. #6
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    take a screenshot of the debug window with both sensors connected

    photosensor doesnt appear to respond to light level

  7. #7
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    OK, back to software after my little blunder..

    Still not getting it, dont know how the iochannel ties into the gauges, this was a guess on what to do. I snipped out what I did not need from the example skin, label is not working either but I bet its because I dont have it set correctly.

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <FusionControlCentreConfiguration version="3.0.0.0" author="Nicholas Vergunst" date_created="Tuesday, January 31st, 2008" last_modified="Thursday, February 7th, 2008">
    	<require>
        <font name="Arial14" originalSize="14" font_config="Content\config\fonts\FusionFontArial14.xml"></font>
        <font name="LED50" originalSize="50" font_config="Content\config\fonts\FusionFontLED.xml"></font>
    	</require>
      <general>
        <debug status="on"></debug>
        <remote>
          <watch_folder path=""></watch_folder>
        </remote>
      </general>
    	<graphics>
    		<main_display designed_for_size="800,600" show_at_size="800,600" menubar="sizeable" RunInSystemTray="false" MinimizeToSystemTray="true"></main_display>
        <background_image style="stretch" imagefilepath="Content\FusionSRT_images\Background\Gradient_01.png" page="0"></background_image>
    
       <!-- **   BEGIN STATIC GUAGE BACKGROUNDS   ** -->
        <staticimage>
          <image path="Content\FusionSRT_images\Guages\OutsideTemperature.png"></image>
          <display size="260,170" location="5,91" page="0" z_order="0.9"></display>
        </staticimage>
        <staticimage>
          <image path="Content\FusionSRT_images\Guages\InsideTemperature.png"></image>
          <display size="260,170" location="270,91" page="0" z_order="0.9"></display>
        </staticimage>
            
        <!-- **   END STATIC GUAGE BACKGROUNDS   ** -->
    
        <!-- **   BEGIN GUAGE NEEDLES   ** -->
        <multiimage id="OutsideTemperature_Guage" monitorType="variable" monitorID="Variable_OutsideTemperature">
          <display size="180,180" location="46,139" page="0"></display>
          <options imageScaling="stretch"></options>
          <imageAUTO directory_path="Content\FusionSRT_images\Guages\UberArcByh3rk">
            <image_range filename_base="" filename_start="0" filename_end="170" filename_extension="png"></image_range>
            <value_range value_start="70" value_end="80"></value_range>
            <options rotate="5"></options>
          </imageAUTO>
        </multiimage>
        <multiimage id="InsideTemperature_Guage" monitorType="variable" monitorID="Variable_InsideTemperature">
          <display size="180,180" location="311,139" page="0"></display>
          <options imageScaling="stretch"></options>
          <imageAUTO directory_path="Content\FusionSRT_images\Guages\UberArcByh3rk">
            <image_range filename_base="" filename_start="0" filename_end="170" filename_extension="png"></image_range>
            <value_range value_start="70" value_end="80"></value_range>
            <options rotate="5"></options>
          </imageAUTO>
        </multiimage>
        
        <!-- **   END GUAGE TEXT INDICATORS   ** -->
    	</graphics>
    	<io>
    		<brain id="MainBrain">usb\vid_04d8&amp;pid_000c\6&amp;4dc1f33&amp;0&amp;2</brain>
    
        <timer id="logic" interval="65"></timer>
    		<timer id="gui" interval="30"></timer>
    		<timer id="output" interval="100"></timer>
    		<timer id="input" interval="50"></timer>
        <iochannel id="InsideTemp" port="0" brain="MainBrain" type="analogue_input">
          <options history="1" auto_average="false"></options>
        </iochannel>
        <iochannel id="OutsideTemp" port="1" brain="MainBrain" type="analogue_input">
          <options history="1" auto_average="false"></options>
        </iochannel>
    	</io>
    	<logic>
    		<all_variables>
    			<variable name="Variable_OutsideTemperature">70</variable>
          <variable name="Variable_InsideTemperature">72</variable>
          </all_variables>
        
        <all_logging>
        </all_logging>
    
        <all_statements>
    
         
          
        </all_statements>
    	</logic>
    </FusionControlCentreConfiguration>
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  8. #8
    Fusion Brain Creator
    Join Date
    Mar 2005
    Posts
    2,221
    Your IOChannel ID is the name assigned to the variable that is collected by the FUsion Brain for that specific port. This would be a number ranging from 0 to 5 volts DC.

    Then, in Logic, you convert that to another value, in this case degrees. What you've done is set two constants, "Variable_OutsideTemperature" and "Variable_InsideTemperature".

    In graphics, "monitorID="Variable_OutsideTemperature"" tells it to read "Variable_OutsideTemperature" to determine how to draw the graphic.

    make sense?

  9. #9
    FLAC -zip-'s Avatar
    Join Date
    Sep 2004
    Location
    Ontario/Canada
    Posts
    1,293
    Nope still not sinking in. I keep trying to fiddle with stuff for hours, there really is no docs yet for me to figure this out. Or some kind of direction/examples. Ok gotta favor. Write a sample code.

    Lets say its for outside temperature. on Port 0.

    1. 1 Temp Sensor, showing temp in Fahrenheit and one moving graphic, the Nissan one with the donut looking arc graphic.

    2. A text label showing the same thing. Tried the above example, im so useless I tried cut and paste nothing showed.
    2008 350z GT Installed since April 22nd 2011 - Worklog
    2000 Protege Installed Since April 2, 2005 - Intel D201GLY|Fusion Brain|ODBPros ODBII|Engenius|GPS Rikaline|Powermate|Motorized Lilli
    Sound Stage
    Eclipse|MTX|Infinity

  10. #10
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,053
    Download the attachment and put it in your functions folder (well unrar it to your functions folder)

    Make a Brain, make an Analogue to your temp sensor, make a variable (numeric).

    Then make the following if statement:


    Then make a multiimage follow the variable like this:


    If you want to use h3rk's arc, then (you might need to rename the first 10 files to 001, 002, 003, 004... and so on if you havent already.

    Then open the auto import from folder icon, set the max and min temps you want that arc to represent and click open. Then save and save the whole thing and there you go.



    For the text label use the code above but put your variable name in it. The example uses the variable called "Variable_OutsideTemperature".

    You also need that font file in the required such as:

    Code:
      <require>
        <font name="LED50" originalSize="50" font_config="Content\config\fonts\FusionFontLED.xml"></font>
      <require>
    with the appropriate font file in the location it says. You should have this font in that spot because I include it in the download.

    Code:
        <text_label id="TextIndicator_Temp" text="00" auto_monitor="variable" auto_monitorTarget="Variable_OutsideTemperature">
          <font font_id="LED50" font_size="40"></font>
          <display location="97,191" page="0"></display>
          <config decimals="1" max_size="77,32"></config>
        </text_label>

    functions.rar
    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

Page 1 of 5 12345 LastLast

Similar Threads

  1. Tutorial - Anti-Thump Amp Delay For Carputer Boots: Version 2 & MDX
    By greenman100 in forum FB Documentation and Tutorials
    Replies: 13
    Last Post: 01-21-2011, 06:44 PM
  2. 2001 Acura MDX constant 12v power outlet.
    By geobag in forum Power Supplies
    Replies: 4
    Last Post: 08-01-2010, 09:53 PM
  3. Uber MDX Configurator Beta Testing...
    By 2k1Toaster in forum FB Software
    Replies: 344
    Last Post: 06-08-2008, 11:49 PM
  4. Documentation - Installing Version MDX
    By greenman100 in forum FB Documentation and Tutorials
    Replies: 1
    Last Post: 03-11-2008, 11:39 PM
  5. configure the new mdx 3.0.0.0
    By customaudioman in forum FB Software
    Replies: 2
    Last Post: 02-21-2008, 02:55 AM

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
  •