Page 1 of 1

PWM duty cycle gauge missing feature?

Posted: Sat Feb 10, 2018 12:14 pm
by SwedCharger-67
I've designed my own PWM power electronics for speed control of a cooling pump. I would like to have a gauge showing the duty cycle driving the pump i.e. 0% at no pump and 100% at full pump.
Unfortunately my electronics is inverting the PWM signal (generic PWM output B connected to Nitrous 1 pin) and TS gauge is showing 100% at no pump and 0% at full pump.
I don't seem to find a way to swap it around, is there a way?
MS3X FW 1.5.1, regged TS v3.0.28 Linux-version.

Re: PWM duty cycle gauge missing feature?

Posted: Sun Feb 11, 2018 10:16 am
by LT401Vette
Create a new OutputChannel that inverts it

[OutptuChannels]

invertedDutyCycle = { 100 - yourCurrentChannel }


Then assign your gauge to that OutptuChannel.

You can make the OutputChannel in the TuenrStudio MS Ultra Channel Editor, or edit/add your custom.ini file.

Re: PWM duty cycle gauge missing feature?

Posted: Mon Feb 12, 2018 10:32 am
by SwedCharger-67
Thanks a lot Phil!
That did the trick nicely! Impressive flexibility and excellent software engineering in the TunerStudio! :D