Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
04-06-2008, 05:06 AM
|
#1
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,136
|
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.
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
|
|
|
04-06-2008, 11:42 PM
|
#2
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 6,852
|
Quote: Originally Posted by -zip- 
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>
|
|
|
04-07-2008, 12:31 AM
|
#3
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,136
|
yep perfect, will give it a spin tomorrow.
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
|
|
|
04-07-2008, 02:48 AM
|
#4
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 6,852
|
Quote: Originally Posted by -zip- 
yep perfect, will give it a spin tomorrow.
sounds good let me know if it works.
|
|
|
04-07-2008, 07:04 PM
|
#5
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,136
|
...ugh wrong ports i'm such a noob.
Thanks Green, nice to know how to work the Debug feature LOL.
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
Last edited by -zip- : 04-07-2008 at 10:16 PM.
|
|
|
04-07-2008, 10:08 PM
|
#7
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,136
|
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&pid_000c\6&4dc1f33&0&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>
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
Last edited by -zip- : 04-07-2008 at 10:16 PM.
|
|
|
04-07-2008, 10:43 PM
|
#8
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,864
|
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?
|
|
|
04-13-2008, 04:55 PM
|
#9
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,136
|
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.
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
|
|
|
04-13-2008, 05:31 PM
|
#10
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 6,852
|
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
|
|
|
04-13-2008, 05:38 PM
|
#11
|
|
FLAC
Join Date: Oct 2006
Location: Las Vegas
Vehicle: 2006 Nissan Altima
Posts: 1,043
|
I was just adding some of these premade functions to my christmas list when you chimed in. Thanks for that.
That really does take the scary out of cascading if statements in a skin!!!
I noticed that I can't open these pre-made functions in the "Functions" area in the upper right window. I was starting to make an example one by trying to edit the oil one.
|
|
|
04-13-2008, 05:40 PM
|
#12
|
|
Fusion Brain Creator
Join Date: Mar 2006
Location: Colorado, but Canadian!
Vehicle: 2001 Honda Civic EX Coupe
Posts: 6,852
|
You should be able to with the *.designer file as well. Can you elaborate if you cannot?
|
|
|
04-13-2008, 05:50 PM
|
#13
|
|
FLAC
Join Date: Oct 2006
Location: Las Vegas
Vehicle: 2006 Nissan Altima
Posts: 1,043
|
ok, if you start from scratch in configurator, they are are available there, but if you open a pre-worked-on (maybe in xml, for maybe stripped down version of SRT skin) config file, they do not appear in that box.
|
|
|
04-14-2008, 11:18 PM
|
#14
|
|
FLAC
Join Date: Sep 2004
Location: Ontario/Canada
Vehicle: 2000 Protege
Posts: 1,136
|
Thanks Guys, will give it another shot during the week.
__________________
Carputer
Installed Since April 2, 2005
Intel D201GLY|Fusion Brain|Audigy2 NX||ODBPros ODBII|Engenius362ext |Motorized lilli|GPS Rikaline 6010|Opus 150|Powermate|Ergonomic Touchpad|
Sound Stage
Eclipse CD8455|MTX TA3404+421D|Infinity Comps|ID 12" Sub
Last edited by -zip- : 04-14-2008 at 11:28 PM.
|
|
|
04-15-2008, 12:12 AM
|
#15
|
|
Fusion Brain Creator
Join Date: Mar 2005
Posts: 1,864
|
The cables could be picking up noise. Are your extensions shielded?
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:05 AM.
|
|