Showing results for 
Search instead for 
Do you mean 

Import/Export Data between Excel and Test.Lab

by Siemens Experimenter Siemens Experimenter ‎05-26-2017 10:17 AM - edited ‎07-13-2017 01:38 PM


Have data in Test.Lab that you want to export to Excel? Have data in Excel that you want to import to Test.Lab? Luckily, it’s easy!

 

Export to Excel:

 

To export data to Excel, right click on a curve, select “Copy Values” and then select “All”.

 

Figure 1: Copy the values directly from the plot.Figure 1: Copy the values directly from the plot.

Open Excel and paste the data. The first few dozen rows that are pasted contain header information: details like timestamps, weighting, and datatype etc. This is to preserve information about the data even if it is moved into Excel. 

 

Figure 2: Paste the data into Excel.Figure 2: Paste the data into Excel.

Below the header is the numerical data.

 

Figure 3: Below the header is the numerical data.Figure 3: Below the header is the numerical data.

It is also possible to copy multiple curves from a display. Select multiple curves, right click, “Copy Values”, and select “All”.

 

Figure 4: Copy multiple curves from a display.Figure 4: Copy multiple curves from a display.

To copy just a subset of the data instead of the entire curve, zoom in on a narrower frequency range, right click, “Copy Values”, and select “Between X Limits”.

 

Figure 5: Copy range of values instead of the whole curve.Figure 5: Copy range of values instead of the whole curve.

You can also copy legend data that is calculated from a double X cursor.

 

Figure 6: Copy values from a cursor legend.Figure 6: Copy values from a cursor legend.

Import Data to Test.Lab

 

To import Excel data into Test.Lab, make sure the Excel Data Driver add in is turned on. This add-in is included with the desktop and does not require any additional tokens.

 

Figure 7: Tools -> Add-ins -> Excel Data Driver.Figure 7: Tools -> Add-ins -> Excel Data Driver.

Once the add-in is turned on, browse to the data in the navigator tree on the left side of the Navigator workbook. Select the Excel sheet and the data block should populate in the middle pane. Drag the data block to the display to plot it.

 

Figure 8: Import the Excel data into Test.Lab.Figure 8: Import the Excel data into Test.Lab.

NOTE: It is important that the Excel data you are importing has a header. The header has critical information about amplitude format, weighting, and more.

 

Without the proper header information, the Excel data will not import into Test.Lab.

 

If you aren’t sure how to create the header, try using the Data Block Editor instead.

 

Data Block Editor

 

The data block editor is another add-in that is included in the Desktop: no additional tokens are necessary.

 

Figure 9: Tools -> Add-ins -> Data Block Editor.Figure 9: Tools -> Add-ins -> Data Block Editor.

Go to the Data Block Editor workbook. Here, the user can set the appropriate information necessary when importing to Test.Lab from Excel.

 

Figure 10: Data Block Editor Workbook.Figure 10: Data Block Editor Workbook.

In the Data Block Editor, it is possible to set the function type, format, amplitude scaling, x-axis increment information, Point ID, point direction, y axis unit, and weighting.

 

After setting these parameters the user can simply paste their data into the table on the right side of the screen and the picture filling the bottom half of the screen will populate with data.

 

To save this to your project, select “Add to Workspace” and then “Save workspace in active project” (both buttons on the right side of workbook).

 

Select the folder in which to save the data (or create a new folder) and select “OK”.

 

Figure 11: Saving the imported data to the project.Figure 11: Saving the imported data to the project.

The data will be saved into the project in the specified folder.

 

Figure 12: The data was saved into the project and can be plotted / processed as necessary.Figure 12: The data was saved into the project and can be plotted / processed as necessary.

Enjoy the ease of importing and exporting data between Excel and Test.Lab!

 

Questions? Contact us!

 

Related Links:

Contributors