> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending.md).

# DATRAN Trending

Windows program for plotting current and historical data from the DATRAN VI SQL database, with up to 8 pens per plot.

DATRAN Trending is the graphical analysis tool that provides trends of current and historic data from the DATRAN VI SCADA (supervisory control and data acquisition) database. Trending can be used for extracting data for compliance reporting, such as resource consent and Drinking Water Standards (DWS).

DATRAN database is the main database which DATRAN logs onto and that DATRAN Trending application links into to for its plots.

![Several DATRAN Trending users, local and remote, sharing one DATRAN database server](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fivhet19RTs2nFW0STFKA%2Ftrending-network-layout.png?alt=media)

{% hint style="info" %}
These pages are for DATRAN Trending V5.05, released May 2023. Where earlier versions differ, the page says so. Trending V5.04 and later shows its version number in the main window.
{% endhint %}

## What it does

* Up to 8 pens per plot. A pen holds one point from the database; there are 3 different types of pens: analogue, event and alarm.
* Automatic scrolling keeps visible data live.
* Enhanced zoom features: click and drag, mouse wheel and independent X and Y zoom.
* Place a second time cursor to find data summaries between the two time cursors: analogue average, difference, maximum, minimum and total value; digital average, maximum, minimum and total OFF/RTN and ON/ALM time; and sample count.
* Plot notes ("sticky notes") to outline key events, particularly useful for non compliant, DWS events such as instrument calibration.
* Export data as a CSV (comma-separated values) file and select data granularity down to 1 second. Save the graphical plot as a JPEG file for email or distribution.
* Print the current plot to any printer. Save the plots in the DATRAN database as plot template files (`*.ptm`) to duplicate a number of plots that you have designed in one DATRAN database to another DATRAN database.
* Easy access to previously archived databases.

## What it needs

| Item            | Requirement                                                                                                                                                                                                |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DATRAN VI       | The DATRAN database is the actual database for which DATRAN VI logs all data. See [Database logging and SQL Server](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/sql-server.md).              |
| Database access | The SQL login must not be a Viewer role, it must be at least a User role. Trending 5 must be run at least once using a Windows or SQL user that has administrative access over the DATRAN database.        |
| PC              | Windows, with 2 GB of RAM recommended. The brochure lists Windows XP, Vista and Windows 7; QTech's licensing notes also cover Windows 8 and Windows 10.                                                    |
| .NET            | .NET Framework 2.0 to 3.5 turned on in Windows Features                                                                                                                                                    |
| Licence         | The licensing is tied to the machine it is installed on (the PC HDD serial number). See [Install and license DATRAN Trending](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/install.md). |
| Installation    | By someone with administrative (domain) privileges                                                                                                                                                         |

## The main window

The main window contains the main menu and holds the actual plot windows.

| Part                   | What it is                                                                                                                                                                                                                                                                                                                          |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Legend                 | Usually positioned on the left of the graph. There are eight legend areas, one for each pen. Each holds the point name (made up of station, equipment and point name) and pen colour. When the time cursor is active the value is displayed under the name of the point. Right clicking on the legend gives the user a legend menu. |
| Graph                  | The actual plotting area of the plot screen. A dotted straight line will be drawn from the last known value to the current time.                                                                                                                                                                                                    |
| Navigation control bar | The navigation control bar has many toolbars: date time pickers, plot, X-axis or time axis, Y-axis and plot notes. To change the position of the navigation control bar from the bottom to the top, double click on any clear space on the navigation control bar.                                                                  |
| Main menu              | **File**, **Current Plot**, **View**, **Database**, **Options**, **Window** and **Help**                                                                                                                                                                                                                                            |

**View > Basic Mode** reduces the number of buttons displayed on the toolbars by hiding them so the most commonly used buttons are displayed. **View > Expert Mode** shows all available buttons on the toolbars. **Force Version Update** can be accessed from the **Database** menu when Trending is running in Expert mode. **View > Realign Toolbars** moves the toolbars to their default positions, which is useful if you find that you have accidentally hidden one or more toolbars.

## Start here

* [Install and license DATRAN Trending](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/install.md): the installer, the database connection and the licence key

## Use it

* [Create, open and share plots](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/plots.md): new plots, plot properties, templates, archived databases and shortcuts
* [Set up pens](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/pens.md): choose points, colours, ranges and the draw order
* [Read and navigate a trend](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/navigate.md): time cursors, statistics, zooming, scrolling and notes
* [Export, print and copy trend data](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/export.md): CSV and JPEG files, and printing

## Fix a problem

* [Troubleshooting](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/troubleshooting.md): find the symptom you're seeing
* [Common questions](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/common-questions.md): quick answers to common questions

## Reference

* [Release notes](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/release-notes.md): what changed in each version
* [Downloads](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/downloads.md): brochure, application note and release notices

## Related

* Supervisor's Mini Trending: view the recent history and trend of a point. See [Monitor sites and channels](https://help.qtech.co.nz/datran/datran-vi-scada/datran-supervisor/sites-and-channels.md).
* DATRANVue screens can open a plot in Trending. See [Open a plot from a shortcut or another program](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/plots.md#open-a-plot-from-a-shortcut-or-another-program).
