How to make a custom ini file
Moderator: LT401Vette
-
- Experienced MS/Extra'er
- Posts: 363
- Joined: Sun May 02, 2004 8:39 am
- Location: Calgary Alberta Canada
How to make a custom ini file
Phil,
Do you have a sample custom ini file and instructions on how to modify it to grab other analog data e.g. from Jean's I/O expander A/D inpiuts?
I need to add in custom gages for EGTx6, manifold back pressure & fuel pressure, and also be able to data log the values as well.
I think it'll be worthwile to document this once and make it a sticky here or add it to the manual. I can't be the only one doing this.
Marc
Do you have a sample custom ini file and instructions on how to modify it to grab other analog data e.g. from Jean's I/O expander A/D inpiuts?
I need to add in custom gages for EGTx6, manifold back pressure & fuel pressure, and also be able to data log the values as well.
I think it'll be worthwile to document this once and make it a sticky here or add it to the manual. I can't be the only one doing this.
Marc
-
- Super MS/Extra'er
- Posts: 12731
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: How to make a custom ini file
I've always looked to minimize the need for a custom ini, but it still does come in handy at times.
Like for gauges, you do not need to edit an ini file, you can do that entirely through the UI. However it you want to add a new gauge template of add a different gauge to the default dash, you need to edit an ini.
As for a sample, well there are plenty of those. Just grab any one of your ini files. Any change you would want to make in the ini itself, you do it the same only put it in the custom.ini. When you load the project the mainController.ini is loaded first, then the custom.ini. The values in the custom.ini will add to, or over-ride what was in the mainController.ini
So you just need to make sure you put the section header in, then the line you would have put in the ini.
Gauge Template Example:
Looking at the instructions in the firmware ini file:
;-------------------------------------------------------------------------------
; Define a gauge's characteristics here, then go to a specific layout
; block (Tuning or FrontPage) and use the name you've defined here to
; display that gauge in a particular position.
;
; Name = Case-sensitive, user-defined name for this gauge configuration.
; Var = Case-sensitive name of variable to be displayed, see the
; OutputChannels block in this file for possible values.
; Title = Title displayed at the top of the gauge.
; Units = Units displayed below value on gauge.
; Lo = Lower scale limit of gauge.
; Hi = Upper scale limit of gauge.
; LoD = Lower limit at which danger color is used for gauge background.
; LoW = Lower limit at which warning color is used.
; HiW = Upper limit at which warning color is used.
; HiD = Upper limit at which danger color is used.
; vd = Decimal places in displayed value
;Name Var Title Units Lo Hi LoD LoW HiW HiD vd ld
Like for gauges, you do not need to edit an ini file, you can do that entirely through the UI. However it you want to add a new gauge template of add a different gauge to the default dash, you need to edit an ini.
As for a sample, well there are plenty of those. Just grab any one of your ini files. Any change you would want to make in the ini itself, you do it the same only put it in the custom.ini. When you load the project the mainController.ini is loaded first, then the custom.ini. The values in the custom.ini will add to, or over-ride what was in the mainController.ini
So you just need to make sure you put the section header in, then the line you would have put in the ini.
Gauge Template Example:
Looking at the instructions in the firmware ini file:
;-------------------------------------------------------------------------------
; Define a gauge's characteristics here, then go to a specific layout
; block (Tuning or FrontPage) and use the name you've defined here to
; display that gauge in a particular position.
;
; Name = Case-sensitive, user-defined name for this gauge configuration.
; Var = Case-sensitive name of variable to be displayed, see the
; OutputChannels block in this file for possible values.
; Title = Title displayed at the top of the gauge.
; Units = Units displayed below value on gauge.
; Lo = Lower scale limit of gauge.
; Hi = Upper scale limit of gauge.
; LoD = Lower limit at which danger color is used for gauge background.
; LoW = Lower limit at which warning color is used.
; HiW = Upper limit at which warning color is used.
; HiD = Upper limit at which danger color is used.
; vd = Decimal places in displayed value
;Name Var Title Units Lo Hi LoD LoW HiW HiD vd ld
Code: Select all
[GaugeConfigurations]
gaugeCategory = "Marcs Gauge Templates"
marcsGauge = anOutputChannel, "Test Gauge", "%", 0, 100, -1, 1, 90, 955, 1, 0
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: How to make a custom ini file
Marc,
Since you have an MS3, you should not have to create a custom ini. You should be able to simply use the MS3 generic sensor inputs: http://www.msextra.com/doc/ms3/genericsensors.html and the EGT inputs: http://www.msextra.com/doc/ms3/egt.html. Of course, you'll need to make sure the MS3 does get those from the IOx: http://www.msextra.com/doc/ms3/can.html#config.
Jean
Since you have an MS3, you should not have to create a custom ini. You should be able to simply use the MS3 generic sensor inputs: http://www.msextra.com/doc/ms3/genericsensors.html and the EGT inputs: http://www.msextra.com/doc/ms3/egt.html. Of course, you'll need to make sure the MS3 does get those from the IOx: http://www.msextra.com/doc/ms3/can.html#config.
Jean
-
- Experienced MS/Extra'er
- Posts: 363
- Joined: Sun May 02, 2004 8:39 am
- Location: Calgary Alberta Canada
Re: How to make a custom ini file
I agree you can select a gage via the UI and connect it to a output channel. What I don't see there is a means to rename the genric gage and then apply scaling to it. So if there is a method to rename the gage and add scaling via the UI please describe it. An example would be good.
The other part of my orginal question got missed... are the additional A/D input channels being datalogged by default (EGT 0-n + addtional A/D inputs)?
Thanks
The other part of my orginal question got missed... are the additional A/D input channels being datalogged by default (EGT 0-n + addtional A/D inputs)?
Thanks
-
- Site Admin
- Posts: 39615
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: How to make a custom ini file
If you enable EGTs or Generic Sensors then they are enabled in the serial datalog.
You shouldn't need to apply scaling in the UI - do that in the Generic sensors screen. Otherwise the logged values will be out of scale too.
With the registered versions of TS (only) you can customise the dash and rename gauges.
James
You shouldn't need to apply scaling in the UI - do that in the Generic sensors screen. Otherwise the logged values will be out of scale too.
With the registered versions of TS (only) you can customise the dash and rename gauges.
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
-
- Experienced MS/Extra'er
- Posts: 363
- Joined: Sun May 02, 2004 8:39 am
- Location: Calgary Alberta Canada
Re: How to make a custom ini file
If we want to rename "sensor 01" to say fuel pressure does this have to be done via the ini file?
All the rest of the set up is painless following the directions above. Thanks
All the rest of the set up is painless following the directions above. Thanks
Re: How to make a custom ini file
I will suggest to follow this quick guide for what your seeking for:
http://www.msextra.com/doc/ms2extra/MS2 ... m#addgauge.
I follow that as a guide and I successfully place an Oil and Fuel Pressure gauge in my TS.
But I edit the maincontroller.ini instead of creating a custom.ini.
http://www.msextra.com/doc/ms2extra/MS2 ... m#addgauge.
I follow that as a guide and I successfully place an Oil and Fuel Pressure gauge in my TS.
But I edit the maincontroller.ini instead of creating a custom.ini.
-
- Site Admin
- Posts: 39615
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: How to make a custom ini file
Registered version: Right click on the gauge and change its name.ca434sbc4 wrote:If we want to rename "sensor 01" to say fuel pressure does this have to be done via the ini file?
Unregistered : Edit the ini file.
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".