Dashboard Indicators for Switched Inputs

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Dashboard Indicators for Switched Inputs

Post by NigeT »

Can anyone give me some pointers for how to create indicators to show the state of the Nitrous In and Tableswitch inputs?
Thanks,
Nigel.
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by dontz125 »

Are you using MS1, 2, or 3, and do you have the registered version of TS?
Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

My apologies. I'm using a registered copy of TunerStudio (v2.6.14) with my MS-Labs MS3 Basic (serial signature MS3 Format 0435.16, firmware version 1.3.4?).
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

If the switches inputs can't directly have indicators associated, is it possible to set up indicators to show which boost and ignition tables are currently being used?
Thanks, Nigel.
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by LT401Vette »

It is really a matter of whether there are any flags set for those events in the status channels.

So it is really a firmware question.
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
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Thanks for explaining that. One of my problems when looking at customising dashboards is trying to understand the channels and what they actually represent. I guess I haven't found the right manual yet.
Thanks,
Nigel.
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by jsmcortina »

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".
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Hi James, believe it or not I had been looking through that manual - I just hadn't realised that "MegaLogViewer Datalog Fields" also applied to TunerStudio indicator sources. Many thanks, Nigel.
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Tried this out today, porth6 and porth7 are exactly what I needed - fantastic. Just one related question - how does the logic work with these for dashboard indicators compared to how MS3 switches timing and boost tables? Dimitris told me that the "on" state was selected by grounding the appropriate pin (switched to ground). My dashboard indicators seem to be showing me the opposite of what I expected (although they do show that the switches are at least changing the states :-)).
Thanks,
Nigel.
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by LT401Vette »

If you create a new Indicators, make them reference those ports in OutputChannel.

If the port value is 0, it is off, if it is anything else, it is considered on. With these ports the value should only be 1 (on) or 0(off)..

So on a TS dashboard go into designer mode
- Right Click on the dash, select "New" --> "Add Indicator"
- Click on that indicator so it is selected.
- Right Click the Indicator, select "Properties" --> "Output Channel"
- in the "Output Channel" Dropdown, select porth6

Now that indicator will trigger to porth6, change the colors and text as you wish.
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
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Hi Phil,

thanks for taking to help out again with my dumb questions. I already did exactly what you suggest above. When my physical switch closes (switches to ground), the indicator goes from the on value to the off value, so now I'm wondering which boost and which ignition table is actually selected when the switch is open (i.e. pin pulled up to 12V)?

On the Table Switch/Dual Fuel dialog I have only Spark Table Switching set to On, Switch Source is Hardware and Input Pin is Tableswitch.

On the Boost Control Settings dialog I have Boost Table Switching set to "Nitrous in".

Can you tell me which of Ignition Table 1 and Ignition Table 2 is selected when the physical switch is on (i.e. When the input pin is grounded - when the indicator is in the off state)? Similarly which Boost Control Target Table / Boost Control Initial Duty Table is selected when the physical switch is on (again when the input pin is grounded and the indicator is in the off state)?

Thanks, Nigel.
dontz125
Super MS/Extra'er
Posts: 4221
Joined: Mon May 11, 2009 7:14 pm
Location: York, ON
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by dontz125 »

The default is always "Table 1", be it spark, VE, AFR, etc. All the switching methods are FROM Table 1, TO Table 2 (or 3, or blend, or ...)
Temporarily shut down - back soon!
QuadraMAP Sensor Module -- PWM-to-Stepper Controller -- Dual Coil Driver
Coming soon: OctoMAP Sensor Module
TTR Ignition Systems
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Thanks, so if TableSwitch hours from 1 (pulled-up to12V) to 0 (grounded) then it switches from default table to the other table. Thanks.
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

I ask because the TunerStudio indicator behaviour suggests to me that pulled-up to 12V is represented as a binary 1 (or TRUE) and switched to ground as a binary 0 (FALSE). So it just seems like reverse logic to go from the default table when the switch variable goes to FALSE. Obviously I know nothing of the code so this is just conjecture.
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Last question to close out this. How can I have a dashboard indicator to say which ignition and which boost table is being followed? I really want to be 100% sure my physical switches are doing what I think they are. Thanks, Nigel.
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Is there a way to configure custom indicators? I have spent much time with Google but found nothing documenting how to do it.
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

I guess I probably mean custom output channels - is that the right terminology?
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by LT401Vette »

More specifically, what type of indicator do you want to create?

You can create a custom.ini for an indicator that will represent the state of any data that is being passed back from the ECU.
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
NigeT
Master MS/Extra'er
Posts: 419
Joined: Wed Apr 08, 2015 1:14 pm

Re: Dashboard Indicators for Switched Inputs

Post by NigeT »

Excellent, so how do I know what data is available, how to reference it, what operations can I perform on it (and with what syntax) and how do I then reference the processed value in an indicator? Thanks, Nigel.
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Dashboard Indicators for Switched Inputs

Post by LT401Vette »

You can read the ini, or if in designer mode all available OutputChannels will be listed in the OutputChannel Drop down.

With a custom.ini you can create any new OutputChannel mathematically based on the ones in the list.
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
Post Reply