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 Configuration

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. Enable the privileges _BatchEditUsers,  _EditAccumulatorType and _EditDeviceMapperScript
  4. Click on Save

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 to Engine (Switch1 in the image 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)
  5. Click on Edit and enter the script shown in the image below. It inverts the Engine signal. We want to use it to reset the “Trip” accumulator.
  6. Click on Test Script to verify that your script works
  7. Click on Accept to save your script
  8. 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 Add new Accumulator Type
  3. Give your accumulator the name “Today”, select the type “active time with reset”, the variable Engine and the Reset interval “Daily”
  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

Activate single Accumulators

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 the “Today” and “Trip” accumulators to the vehicle
  3. Click on Save

Activate Accumulators in batch

If you want to edit a large number of vehicles you can use the “Batch Edit Users” function found in the Vehicles list drop-down.

  1. Click on Batch Edit Users to open the batch editor
  2. Select the User Type _Unit and click Next (select the user type that contains the vehicles you want to edit)
  3. Select the property Accumulator, the action Add and the Accumulator Today
  4. Repeat with the property Accumulator, the action Add and the Accumulator Trip and click Next
  5. Verify that the Summary shown matches your intention and click Apply changes

Show Accumulators in the Vehicles list

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

  1. Click on the “Select columns” icon in the Vehicles list (marked with an arrow in the image below) and select the columns “Today” and “Trip” to show them in the Vehicles list
  2. Click on the Workspace / Save menu item if you want the column setup to be saved

Note: You can drag the columns in the “Select columns” list if you want to change the column order in the Vehicles list

Limitations

In the current version the accumulators with reset capabilities (of type “active time with reset”) only display information in real time, accumulator history is not available.