You can export data from graphs, charts, tables, and arrays. You also can export an image of a graph, chart, or table.

Exporting Data from Graphs, Charts, Tables, and Arrays

You can export data from graphs, charts, tables, and arrays. You can export data to the clipboard, Excel, or DIAdem.

Note You must have Microsoft Excel installed to export data to Excel. You must have DIAdem installed to export data to DIAdem. To learn more about DIAdem and to download the latest version of DIAdem, visit ni.com/diadem .

The source of data influences how LabVIEW exports that data:

  • For graphs and charts, you can export only the data that is visible in the front panel window.
  • You can export an entire graph with multiple plots. You also can export a single plot from a graph.
  • For arrays and tables, you can select the cells, columns, and rows that you want to export.
  • You can export 1D or 2D string arrays or numeric arrays.
  • You also can export arrays of more than two dimensions. However, for arrays of more than two dimensions, you can export only the dimensions visible in the front panel window.

Understand how LabVIEW presents exported data from various data sources:

  • The data you export from a graph or a chart displays in two columns for each individual plot:
    • The first column in a pair represents the x values of the plot.
    • The second column in a pair represents the y values of the plot.
  • The data you export from intensity graphs displays in a single column for each plot.
    • A column represents a plot.
    • An individual cell represents a z value at an (x, y) location on the plot.

To export data, complete the following steps.

  1. Optional: Customize how data displays to scope the data that appears in the export.
  2. Export data interactively or programmatically:
    OptionDescription
    Interactive
    1. Right-click a graph, chart, table, or array.
    2. Select Export from the shortcut menu and select one of the following options:
      • Export Data To Clipboard
      • Export Data To Excel
      • Export Data To DIAdem
    Programmatic Depending on the data to export and the export format, use the following methods:
    • Export Data to Clipboard: export from a graph, chart, table, array, or digital data control
    • Export Data to Excel: export from a graph, chart, table, array, or digital data control
    • Export Data to DIAdem: export from a graph or chart

Exporting Images of Graphs, Charts, and Tables

You can export images of most visualizations. You can save the exported image to the clipboard or to disk.

You can use these images in presentations, email, text documents, and so on.

You can export images of the following:

  • Most graphs and charts
  • Tables
  • Picture controls
  • Digital data
  • Digital waveform controls and indicators

The following visualizations do not support exporting images:

  • Intensity graphs and intensity charts
  • Certain 3D graphs: 3D Surface Graph, 3D Parametric Graph, and 3D Line Graph

Depending on your operating system, you can export images into the following formats:

Table 3. Supported Image Formats for Export
Operating System Supported Formats
Windows
  • .emf
  • .bmp
  • .eps
macOS
  • .pict
  • .bmp
  • .eps
Linux
  • .bmp
  • .eps
Note When you export a simplified image, LabVIEW exports only the control or indicator, digital display, plot legend, and index display. The exported simplified image does not include scroll bars, the scale legend, the graph palette, or the cursor legend.

Complete the following steps to export an image of a visualization.

  1. Open the dialog for exporting an image.
    Plot TypeDescription
    Graph, chart, table, picture control, digital data, or digital waveform control or indicator
    1. Right-click the visualization.
    2. Select Export » Export Simplified Image
    3D graph
    1. Right-click the 3D graph.
    2. Select Export Image » Export to File.
    For the two-dimensional visualizations, the Export Simplified Image dialog box appears. For 3D graphs, the Image to File.vi dialog box appears.
  2. In the dialog box, select the format of the file.
  3. Select whether you want to save to the clipboard or to disk.
  4. Optional: For two-dimensional graphs or charts, place a checkmark in the Hide Grid checkbox to hide the gridlines.
  5. Depending on whether you are saving the image to disk or exporting to the clipboard, click Save or Export, respectively.
Note

You can use the Export Image method to programmatically export an image of a graph, chart, table, or digital data control.

You can use the Get Image method to programmatically export the image of a control or indicator.