<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Decription Totalizer Calculation - Torque main forum				            </title>
            <link>https://torque-bhp.com/community/main-forum/decription-totalizer-calculation/</link>
            <description>Torque Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 11 Aug 2026 09:02:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Decription Totalizer Calculation</title>
                        <link>https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42706</link>
                        <pubDate>Tue, 07 Jul 2020 12:07:55 +0000</pubDate>
                        <description><![CDATA[Thanks again for the explanation.

I will give it a try.]]></description>
                        <content:encoded><![CDATA[Thanks again for the explanation.

I will give it a try.]]></content:encoded>
						                            <category domain="https://torque-bhp.com/community/main-forum/">Torque main forum</category>                        <dc:creator>fluegelmann</dc:creator>
                        <guid isPermaLink="true">https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42706</guid>
                    </item>
				                    <item>
                        <title>RE: Decription Totalizer Calculation</title>
                        <link>https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42702</link>
                        <pubDate>Mon, 06 Jul 2020 15:08:07 +0000</pubDate>
                        <description><![CDATA[Try totalizing your speed...

 tot(3600:*0.62137)

to yield totalized miles travelled.

I believe  reports in km/h. 
reports in L/h. Note corrections above.
Foggy memory ...]]></description>
                        <content:encoded><![CDATA[Try totalizing your speed...

 tot(3600:*0.62137)

to yield totalized miles travelled.

I believe  reports in km/h. 
reports in L/h. Note corrections above.
Foggy memory strikes again.

It should totalize your speed into miles.
If your speed was a constant 60 MPH the
totalizer should show exactly 60 miles after an
hour of travel. (Similar to the timer example
given above... a constant value totalized
over time period).

In most cases your "value" for totalizing won't
be constant. The tot() function looks at the
delta time between readings and adjusts/prorates
its result based upon the base period used every
active cycle.

Clear as mud right?]]></content:encoded>
						                            <category domain="https://torque-bhp.com/community/main-forum/">Torque main forum</category>                        <dc:creator>Capp777</dc:creator>
                        <guid isPermaLink="true">https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42702</guid>
                    </item>
				                    <item>
                        <title>RE: Decription Totalizer Calculation</title>
                        <link>https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42701</link>
                        <pubDate>Mon, 06 Jul 2020 15:03:29 +0000</pubDate>
                        <description><![CDATA[Thanks for your explanation.

For me it seems that the totalizer function is only suitable for time based values?

How would you use the function to generate a (second) Odometer that sum...]]></description>
                        <content:encoded><![CDATA[Thanks for your explanation.

For me it seems that the totalizer function is only suitable for time based values?

How would you use the function to generate a (second) Odometer that sums up my traveled distance?

What should happen in a function like tot(3600:) ? Will ist sum up each received value within one hour? Will it stop after one hour?

I´m quite confused.]]></content:encoded>
						                            <category domain="https://torque-bhp.com/community/main-forum/">Torque main forum</category>                        <dc:creator>fluegelmann</dc:creator>
                        <guid isPermaLink="true">https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42701</guid>
                    </item>
				                    <item>
                        <title>RE: Decription Totalizer Calculation</title>
                        <link>https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42684</link>
                        <pubDate>Wed, 01 Jul 2020 13:15:07 +0000</pubDate>
                        <description><![CDATA[The following is an example second timer...

 int(tot(1:lookup(Val{SIM Counter}::0~1=0:2~65535=1)))

Note 1 used for seconds. If the process variable is in minutes
(e.g., ml/min) then 6...]]></description>
                        <content:encoded><![CDATA[The following is an example second timer...

 int(tot(1:lookup(Val{SIM Counter}::0~1=0:2~65535=1)))

Note 1 used for seconds. If the process variable is in minutes
(e.g., ml/min) then 60 would be needed. 3600 for hours
(e.g., MPH); etc.

The tot() function has a catchup feature based upon its
saved (delta) timestamp. It has been suggested that totalizers
should remain active for most accurate results. This can be
accomplished by leaving the dashboard containing totalizer
active, adding to data logging and/or by floating widget.

My timer is a stored value between sessions so note
how I use a SIM Counter which increments when
Torque starts. This causes a zero value to totalize
until the conditional value is achieved, then the timer
resumes totalizing from the saved value by 1. This step
allows the timestamp to become current avoiding the
catchup between sessions.

SIM Counter equation...

 Min(Val{SIM Counter}+1:15) 


Ian if you are reading this... it would be nice
to add two more parameters to tot() function:

Enable/Disable totalizer.
Initial value.

If a specific initial value could be set when
a reset occurs then count down timers could
be created by totalizing negative values.

MPG example...

 tot(3600:*0.62137)/tot(3600:*0.264172052)

Edited.]]></content:encoded>
						                            <category domain="https://torque-bhp.com/community/main-forum/">Torque main forum</category>                        <dc:creator>Capp777</dc:creator>
                        <guid isPermaLink="true">https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-42684</guid>
                    </item>
				                    <item>
                        <title>Decription Totalizer Calculation</title>
                        <link>https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-9162</link>
                        <pubDate>Wed, 01 Jul 2020 08:47:25 +0000</pubDate>
                        <description><![CDATA[Hi.

I wonder if there is any information about how the totalizer function works?

What i found wasbut it doesn´t explain how to use the tot() function.

My main goal is to get &quot;global...]]></description>
                        <content:encoded><![CDATA[Hi.

I wonder if there is any information about how the totalizer function works?

What i found was <a class="go2wpf-bbcode" rel="nofollow" target="_blank" href="https://torque-bhp.com/wiki/Equations">https://torque-bhp.com/wiki/Equations</a> but it doesn´t explain how to use the tot() function.

My main goal is to get "global variables" that sum up certain values.

/fluegelmann]]></content:encoded>
						                            <category domain="https://torque-bhp.com/community/main-forum/">Torque main forum</category>                        <dc:creator>fluegelmann</dc:creator>
                        <guid isPermaLink="true">https://torque-bhp.com/community/torque-discussion-ideas/decription-totalizer-calculation/#post-9162</guid>
                    </item>
							        </channel>
        </rss>
		
<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 33/37 objects using Memcached
Page Caching using Memcached (Requested URI contains query) 
Database Caching 24/45 queries in 0.023 seconds using Memcached

Served from: torque-bhp.com @ 2026-08-11 09:02:28 by W3 Total Cache
-->