Copy and export

The data file is never modified: copies go to the clipboard, and exports to new files you choose.

Cells selected in the grid
To try this page on the data of its screenshots, download demo-actuator-test.tdms (group Results) from the demo files.

Select cells

To select Do

Cells

Drag over them. A drag along one row selects the values of several channels at one instant.

Whole channels

Click a column header; drag over several headers.

Whole rows

Click a row number; drag over several numbers.

Everything

Ctrl+A (Cmd+A on macOS), or the top left corner of the grid.

Extend the selection

Shift + click, or Shift + arrow keys, Page Up, Page Down, Home and End.

Clear it

Esc

The grid scrolls while the mouse is beyond its edges. The size of the selection is shown next to the Share menu, for instance "7 rows × 3 channels selected".

A click on a cell, the mouse button going down and up on the same cell, still moves the active cursor of the charts.

Copy to the clipboard

Press Ctrl+C (Cmd+C on macOS), choose Copy in the menu of a right click on the selection, or Copy to Clipboard in the Share menu. A right click outside the selection selects the cell, row or column it points at.

The values go to the clipboard as tab-separated text, which Excel and other programs paste as cells:

  • as the grid shows them, or with all their digits (setting measurementDataViewer.copyFullPrecision);

  • with or without the names and units of the channels as first lines (setting measurementDataViewer.copyHeaders).

Clipboard Options… in the Share menu changes both.

Complex values are copied without spaces, 2.1379-0.4178i, or 2,1379-0,4178i with a decimal comma, as the exports write them: Excel’s functions of complex numbers read them, =IMREAL(A2) gives the real part.

A single cell is copied as its text, exactly as it is: JSON, a path or settings stored as text can be pasted into an editor. With the headers, it is copied as a table, like several cells.

Among several cells, a text holding a tab or a line break, or starting with a double quote, is put in double quotes, so that Excel pastes it into one cell; other double quotes are left as they are.

In the tables of properties and channels, Copy in the menu of a right click copies the cell: the whole value of a property, with all its digits, or a name or a type.

To read or copy part of a long text, use Show Value: see Long values.

The values are read from the file as needed: whole channels copy all of their rows, up to 10 million cells. Beyond a million cells, the viewer asks first.

Export to CSV

Command Writes

Export CSV… in the Share menu of a group tab

The values of the group, to one CSV file.

Export All Groups to CSV… in the File tab

One CSV file per group, in a folder, named "<file> - <group>.csv".

  • Values with all their digits, under the names and units of the channels.

  • Timestamps as the grid shows them, in local time or UTC.

  • Complex values as 2.1379-0.4178i, or 2,1379-0,4178i with a decimal comma: the text that Excel’s functions of complex numbers (IMREAL, IMAGINARY, IMABS, IMARGUMENT) read.

  • UTF-8, as Excel reads it.

  • With a decimal comma, the fields are separated by semicolons, as Excel expects.

Groups of any size are exported, read and written by blocks, with a progress notification and Cancel: a 1 GB group gives a CSV file of 1.9 GB in about 15 s. The file is written under another name until it is complete: a cancelled export leaves nothing behind.

Export to Excel

Command Writes

Export to Excel… in the File tab

The whole file, to an Excel workbook (.xlsx).

Export Excel… in the Share menu of a group tab

That group only.

The workbook is laid out as the viewer shows it, after NI’s Excel add-in:

  1. A sheet of properties, named after the file: the properties of the file, of its groups, and of their channels.

  2. A sheet per group, with the names and units of its channels frozen above their values.

Values keep their type: numbers, Booleans and text, and timestamps as Excel dates, in local time or UTC as the grid shows them, to the millisecond. Complex values are written as text, which Excel’s functions of complex numbers read: =IMREAL(B2) gives the real part. The text follows the decimal separator of the setting measurementDataViewer.decimalSeparator, as Excel reads it in its regional format: 2,1379-0,4178i with a decimal comma, 2.1379-0.4178i with a point.

Limits of Excel
  • A group longer than a sheet (1,048,576 rows) or wider (16,384 columns) goes on several sheets, after a warning.

  • Texts longer than a cell (32,767 characters) are cut; the end of the export says how many.

Exports are written by blocks, with the progress and Cancel of the CSV export: a 1 GB group gives a workbook of 626 MB in about a minute.

Images of the charts

Charts are exported as images from their own toolbar: see Time charts and XY charts.