The Data Browser Window

The Data Browser is used to create datasets in the active document. To create a dataset with the Browser, drag a channel name from the list of channel names and drop it in a diagram.

../../_images/data-browser-window-en.png

Example:

  • Choose File=>Import Data to import data into the Data Browser.

  • Set the dataset type in the Type field, e.g. 2D: x/y.

  • Select the y channel in the channel list, for example Eng_Trq_ETKC_1. If the data file contains time channels (e.g. MDF files), the time channel belonging to the y channel is selected automatically as x channel (see Automatic X-Channel Selection).

  • Drag the channel into the active page or the main window to create the dataset.

To create a map, set the type 3D: x/y/z, select the x and y channel, for example N (speed) and MEFF (torque), and drag the channel BEFF (specific fuel consumption) into the page.

See also File=>Import Data.

If the Data Browser is not visible choose View=>Databrowser. If the Data Browser is disabled UniPlot will open the Data Editor. See also The Data Editor.

Elements of the Data Browser

../../_images/data-browser-en.png

From top to bottom the Data Browser contains:

  • The toolbar with the import options, see Toolbar.

  • The file combo box. It displays the name and the directory of the active data file. Click on the arrow to select one of the data files used in the active document. The Edit… button opens the data file in the data editor.

  • The Type combo box to select the type of the dataset that will be created. The data of a selected dataset cannot be replaced with Drag & Drop. To replace the data click on the Load button.

  • The x, y, z and z2 combo boxes. The number of combo boxes depends on the dataset type. The combo boxes can be used to search for a channel. Enter the first couple of characters of the name to find the channel and click on the name in the list. The selected channel name will be selected in the channel list box. For 2D datasets the button for the automatic x-channel selection is displayed left of the x and y combo boxes.

  • The channel list, see Load Data into a Diagram.

  • The preview window, see Data Preview.

Toolbar

The buttons of the toolbar switch the import options on and off. The options are used when a dataset is created with the Data Browser. They are saved and are also available in the context menu.

Button

Description

browser-tb-autoscale

Autoscale: If the option is switched on, the axes of the diagram are rescaled after a dataset has been added, so that all data is visible. If the option is switched off, the current axis scaling is kept. The axes are only rescaled if the data of the new dataset lies outside the axis range or if a new diagram is created.

browser-tb-autoscale-iso

Autoscale Isolines: Only for 3D datasets (maps). If the option is switched on, the isoline values are calculated from the z range of the new data. Switch the option off to keep the isoline values of a map, e.g. to compare several maps with identical isolines when the data is replaced with the Load button.

browser-tb-xsort

Sort X-Coordinates: Only for 2D datasets. If the option is switched on, the data points are sorted in ascending order of the x-coordinates before the dataset is created. This is useful for measurement points that were not recorded in ascending order, e.g. a speed sweep measured from high to low speed, so that the curve is drawn from left to right. Switch the option off if the order of the points must be kept, e.g. for hysteresis loops or data plotted versus a non-monotonic x channel.

browser-tb-tree

Tree Structure: If the option is switched on, the channels are displayed in a tree. Each channel group of the data file (e.g. the data groups of an MDF file, _10ms, _100ms, …) is displayed as a node. The node All Channels contains all channels of the file. If the option is switched off, the channels are displayed as a list with the columns Id, Channel, Unit and Points.

browser-tb-settings

Settings: Opens the dialog box Browser Configuration to set the maximum number of data points displayed in the preview window (10 to 100,000).

browser-tb-help

Help: Displays this help page.

Automatic X-Channel Selection

Measurement files from test benches and vehicles, e.g. MDF files, contain several channel groups that were recorded with different sampling rates (rasters). Each group has its own time channel. A channel can only be plotted versus the time channel of its own group: the time channel of another group has a different number of points and different time stamps.

With the automatic x-channel selection you only have to select the y channel. UniPlot searches for the time channel belonging to the y channel and selects it as x channel. A time channel is a channel with the attribute Type = "Time Channel" that belongs to the same group (identical dimension) as the y channel. The attribute is set, for example, by the MDF import.

Example: In the picture above the channel Eng_Trq_ETKC_1 of the group _10ms has been selected. UniPlot has selected the time channel time5 of this group as x channel. If you select the channel Eng_Spd_ETKC_1 of the group _100ms, the x channel will be set to time4.

The advantages are:

  • No need to search for the matching time channel in long channel lists.

  • No error-prone combinations of a y channel with the time channel of another group.

  • The color of the button shows at a glance if the selected x and y channels belong together.

The button left of the x and y combo boxes switches the automatic selection on and off. The button is only displayed for 2D dataset types (2D: x/y, 2D: x/y Cycle, 2D: x/y/Cycle-Index, 2D: x/y Errorbars, 2D: x/y Bit, 2D: x/y/Label and 2D: PV-diagram). The color of the button shows the state:

Button

State

../../_images/data-browser-autox-off.png

Gray: The automatic x-channel selection is switched off. The x channel is not changed when a y channel is selected.

../../_images/data-browser-autox-nomatch.png

Blue: The automatic x-channel selection is switched on, but the x channel is not the time channel of the y channel. This is the case if the data file does not contain a time channel for the selected y channel, e.g. for Excel or ASCII files.

../../_images/data-browser-autox-match.png

Green: The automatic x-channel selection is switched on and the x channel is the time channel of the y channel. The x and y channels belong together.

The state changes as follows:

  • Click on the button to switch the automatic selection on or off. When it is switched on, the time channel of the selected y channel is immediately selected as x channel.

  • If you select an x channel yourself (in the x combo box or with the context menu command Set as X-Channel), the automatic selection is switched off, so that your selection is not overwritten when you select further y channels.

  • When a data file is loaded into the Data Browser or the dataset type is changed, the automatic selection is switched on again.

The tooltip of the button reads “Automatic x-channel selection on/off - Reacts on attribute ‘Type = Time Channel’”.

Data Preview

The Preview window displays the coordinates of the first selected channel versus the point index. The number of data points is limited to 100,000 data points. The limit can be changed with the Settings button of the toolbar.

Load Data into a Diagram

Choose File=>Import Data to open a data file. The channel names of the data file will be displayed in the Data Browser.

The Data Browser channel list displays the channel name, the Id (identical with the varid used in the nc_* script functions), the channel unit and the number of data points. The channel list can be sorted ascending or descending by clicking on the column heading. Time channels are marked with a circled “t” icon.

Multiple channels can be selected by holding down the Ctrl key. All selected channels can than be dragged into a document page.

For each selected channel a new dataset will be created. If the channel unit is different, a new diagram will be created for each channel.

Other import options like autoscale, x-sort etc. can be set with the toolbar or in the popup menu of the Data Browser. To open the popup menu, right click anywhere in the Data Browser.

Drag & Drop

It depends on the mouse cursor position to which diagram a dataset is added when the left mouse key is released.

  • A new diagram will be created if the mouse cursor is not over any diagram.

  • If the mouse cursor is above a diagram without any datasets, the new dataset will be added to the selected diagram.

  • The dataset will be added to the selected diagram if the diagram contains datasets with identical channel names or units. For stacked diagrams this will be checked for all axes. If no match is found, a new diagram (y-axis) will be added to the stacked diagram.

  • If a new y-axis is added to a stacked diagram, it depends on the mouse position, if the axis is added to the left or right side of the stacked diagram.

  • If the document holds dataset from different files, during the drag & drop operation, UniPlot will offer the possibility to plot the dragged dataset from all the files. A dialogbox will let the user which file to include.

Edit Data

The Edit… button will open the active data file in the data editor. See also The Data Editor.

Context Menu

To open the Data Browser menu right click anywhere in the browser window. The menu contains the following commands:

  • Edit: Opens the active data file in the data editor.

  • Set as X-Channel, Set as Y-Channel: Selects the active channel of the channel list in the x or y combo box. Set as X-Channel switches the automatic x-channel selection off.

  • Autoscale Axis, Autoscale Isoline Values, Sort x-Coordinates: Same as the toolbar buttons, see Toolbar.

  • Apply Record Filter: Applies the record filter of the data file to the datasets that are created.

  • Show Channels in Tree Structure: Same as the toolbar button Tree Structure.

  • Collapse All: Collapses all open nodes of the tree.

  • Help: Displays this help page.

Programming

See Overview Databrowser.

id-98843