Flexible Signal Accumulators

With Flexible Signal Accumulators, you can reset a signal based on accumulators on a daily basis or with an input signal. You'll be able to show those accumulators in the Vehicles list.

This is very useful if you for example want to measure engine hours, daily driving time or continuous driving time.

This example shows how to show both daily driving time and driving time for the latest trip. The input signal Engine is used to count time. The first accumulator called “Today” is reset daily and the second accumulator called “Trip” is reset when the engine is turned off, with a 15 minute delay.

Application setup

Enable the following Priviliges in the VehicleTracker application.

1. Login to SiteAdmin

2. Go to the Applications tab and click on the application you want to edit

3. Go to Privileges and Features > and enable the privileges _BatchEditUsers,  _EditAccumulatorType and _EditDeviceMapperScript

4. Click on Save to save your application.

Device Mapper setup

We need to configure the signals that are used to increment and control the accumulators. Follow the steps below to map the engine signal from your device to Engine and create a custom signal that is the inverted value of Engine.

1. Login to your VehicleTracker application as an Administrator

2. Go to Admin / Device Mappers and select your device in the list

3. Map the correct input signal from your device to Engine variable (we used Switch1 in the example below):

4. Move to 4. Scripts and select CustomBoolean1 as Output to create a custom signal using a Device Mapper script (you can also use another variable). Click on Edit and enter the script: return !fields.get('Engine on',false);

The script inverts the Engine signal. This will be used to reset the Trip accumulator.


5. Click on Test Script to verify that your script works

6. Click on Accept to save your script

7. Save the Device Mapper

Note: You can read more about Device Mapper scripts here

Setup Accumulators

Follow these steps to create the accumulators “Today” and “Trip”.

1. Go to Admin / Accumulator Types

2. Click on

3. Give your accumulator the name Driving today with the following settings:

4. Click on Save

5. Create another accumulator with the name Trip, select the type active time with reset, the variable Engine and the Reset Input Custom boolean1

6. Click on Save

Now you will have the two accumulators activated in the Accumulator Types window

Enable the accumulators to your vehicles

Now add the accumulators to the vehicles that you want to monitor. Follow these steps to test with a few vehicles (batch edit of multiple vehicles is explained in the next section):

  1. Right-click on a vehicle and select Edit User
  2. Go to Accumulators and click on Add Accumulator to add Driving Today and Trip accumulators to the vehicle.

user_edit_add_accumulator.gif

4. Click on Save to save the user.

Note: Use the Batch Edit User tool if you want to do this in batch mode.

Show Accumulators in the Vehicles list

Finally we want to show the accumulators in the Vehicles list.

1. Click on the right of the Vehicle Panel and select the two accumulators

2. Save your Workspace to keep the changes.

Limitations

Currently, the accumulators with reset capabilities (of type active time with reset) only display information in real time, accumulator history is not available.