APPLICATION NOTE 3809

Exporting DS192x Logger Data from the OneWireViewer into Excel

May 29, 2006

Abstract: This application note describes how to export the logged temperature/humidity data from the Thermochron line of temperature and humidity loggers, and then import that data into Microsoft Excel for graphing. The DS1921G is used to demonstrate the process.

Introduction

This application note describes the process for exporting data from all iButton® temperature/humidity data loggers (DS1921G, DS1921H, DS1921Z, DS1922L, DS1922T, and DS1923) by using the OneWireViewer. This data is then copied into either Microsoft Notepad or Wordpad, and saved as a text file. This text file is then imported into a Microsoft Excel spreadsheet to generate printable graphs.

A working knowledge of the OneWireViewer and Microsoft Excel is required to use the information in this application note. The OneWireViewer is a Java®-based software package to explore Maxim's 1-Wire and iButton devices with a personal computer. For information on software download, installation and usage refer to "OneWireViewer User's Guide."

The software screenshots show data for the DS1921G iButton, but differences among the data loggers will be noted in the text. The DS1921H and DS1921Z will have windows similar to the DS1921G.

Procedure

  1. Attach the necessary iButton PC-connectivity hardware. This would be a combination of a 1-Wire adapter, which plugs into a spare PC port, and a Blue Dot receptor, which plugs into the 1-Wire adapter and holds iButtons for reading/writing.
  2. Start the OneWireViewer and place the iButton in the receptor.
  3. Select the correct ROM ID number from the device list (Figure 1).
  4. For the DS1921G, open the Thermochron subviewer by clicking on the Thermochron tab. For the other data loggers, this screen does not have a Thermochron tab. Instead, open the Mission subviewer by clicking on the Mission tab (not shown in Figure 1).

    Figure 1. Thermochron viewer screen.
    Figure 1. Thermochron viewer screen.

  5. Select either Fahrenheit or Celsius in the command window.
  6. For the DS1921G, if the "Is Mission Active?" shows "true," then stop the mission by clicking the Disable Mission button. For the other loggers, the query will be, "Mission in Process?"
  7. On the screen in Figure 1, notice that there are two rows of tabs, an upper row and a lower row. Select the lower "Temperatures" tab. This displays graphically the Thermochron log of temperature vs. time (Figure 2).

    Figure 2. Thermochron temperature vs. time graph.
    Figure 2. Thermochron temperature vs. time graph.

  8. Place the mouse pointer on the graph and right click.
  9. Select the "Copy Data to Clipboard with Labels" line, and click on it (Figure 3) to save the data to the Clipboard.

    Figure 3. When you have your data graph, you can copy that data to the clipboard with a simple right click of the mouse.
    Figure 3. When you have your data graph, you can copy that data to the clipboard with a simple right click of the mouse.

  10. Open a text file using either Notepad or Wordpad.
  11. Paste from the clipboard, and save the file. If you are using the European numbering style (e.g., 77,0), please see Note 1 at the end of this application note.
  12. Start the Excel program.
  13. Select "Open" from the Excel "File" drop-down menu. Browse to the directory in which you saved the text file and change the "Files of type:" window to "All Files (*.*)."
  14. Select your text file, and select the "Open" button. The Text Import Wizard will appear (Figure 4).
  15. Be sure the "Delimited" button is marked before selecting the "Next" button.

    Figure 4. The Text Import Wizard asks you to indicate that your text data is a delimited file before you can proceed.
    Figure 4. The Text Import Wizard asks you to indicate that your text data is a delimited file before you can proceed.

  16. In the Delimiters window that appears, be sure that only the "Comma" or "Semicolon" box is checked (Figure 5). Then select the "Next" button.

    Figure 5. For the data to flow into Excel smoothly, it is important that you mark the file delimiters correctly, using either a comma or a semicolon.
    Figure 5. For the data to flow into Excel smoothly, it is important that you mark the file delimiters correctly, using either a comma or a semicolon.

  17. From the "Column data format" window, check the "Date:" button and select the proper format. Then select the "Finish" button (Figure 6).

    Figure 6. It is important that you select the correct date format, or your data will not import correctly.
    Figure 6. It is important that you select the correct date format, or your data will not import correctly.

  18. Column widths will have to be changed and other general changes for personal preference will have to be made in Excel, but the raw data is now in the proper columns for graphing.

Data Format

The first column of the imported data contains date and time information that was downloaded from the logger (Figure 7).

Figure 7. Once your data is in Excel, Column A will display the date and time when you downloaded your data.
Figure 7. Once your data is in Excel, Column A will display the date and time when you downloaded your data.

Column B contains either C or F for either Celsius or Fahrenheit. This column can be deleted.

Figure 8. Column B should show your temperature data.
Figure 8. Column B should show your temperature data.

After you delete the Celsius or Fahrenheit identifier from Column B, the second column (Column B, again) contains the temperature information (Figure 8).

Graphing

  1. To create a graph, go to the first date and time entry of the graph. Select that cell. A space must be placed in front of the data in the operations line of the Excel file (Figure 9).

    Figure 9. You must insert a space before the data and time after you select that cell.
    Figure 9. You must insert a space before the data and time after you select that cell.

  2. Select the log data to be graphed, highlighting both the time and temperature columns (Figure 10).

    Figure 10. Select your time and temperature data to begin graphing.
    Figure 10. Select your time and temperature data to begin graphing.

  3. Next select "Chart" from the menu under "Insert" (Figure 11).

    Figure 11. After your data is highlighted, you must select the chart format.
    Figure 11. After your data is highlighted, you must select the chart format.

  4. From the Chart Wizard that appears, select the type of chart that is required. Typically the Line chart works well with log data (Figure 12).

    Figure 12. The Chart Wizard gives you several choices for chart format. The Line chart typically works well.
    Figure 12. The Chart Wizard gives you several choices for chart format. The Line chart typically works well.

  5. A sample of the graph will be shown. This allows the data range to be checked and set (Figure 13).

    Figure 13. A sample view of the chart lets you preview and check your data.
    Figure 13. A sample view of the chart lets you preview and check your data.

  6. Add chart options. In this example we will add titles and labels(Figure 14).

    Figure 14. Now you decide what title and labels to add to your chart.
    Figure 14. Now you decide what title and labels to add to your chart.

  7. The final step (Step 4) in the Chart Wizard sets the placement of the graph in the spreadsheet (Figure 15).

    Figure 15. You finish your chart by selecting where to place the graph in a spreadsheet.
    Figure 15. You finish your chart by selecting where to place the graph in a spreadsheet.

    If you are satisfied and do not want to make other changes, click the Finish button to create the graph (Figure 16).

    Figure 16. After clicking on Finish, you will see the graphed Thermochron data.
    Figure 16. After clicking on Finish, you will see the graphed Thermochron data.

    Note 1. If you are using the European numbering style (e.g., 77,0) and a Centigrade scale, open the text file. Select the "Replace" from the "Edit" menu. In the "Find what" window, place "M,C,"; then in the "Replace with" window, place "M;C;". Click on the 'Replace All' button. If you are using Fahrenheit, then "Find what" is "M,F," and "Replace with" is "M;F;". Then, select the Semicolon for the Delimiter when importing the text file.


iButton is a registered trademark of Maxim Integrated Products, Inc.

Java is a registered trademark and registered service mark of Oracle and/or its affiliates.



Related Parts
DS1921G Thermochron iButton Device  
DS1921H High-Resolution Thermochron iButton Devices  
DS1921Z High-Resolution Thermochron iButton Devices  
DS1922E iButton High-Temperature Logger with 8KB Data-Log Memory  
DS1922L iButton Temperature Loggers with 8KB Data-Log Memory  
DS1922T iButton Temperature Loggers with 8KB Data-Log Memory  
DS1923 iButton Hygrochron Temperature/Humidity Logger with 8KB Data-Log Memory  


Next Steps
EE-Mail Subscribe to EE-Mail and receive automatic notice of new documents in your areas of interest.
Download Download, PDF Format (899.5kB)  
Share
Other Channels  Email this page to an associate or friend. 



APP 3809: May 29, 2006
APPLICATION NOTE 3809, AN3809, AN 3809, APP3809, Appnote3809, Appnote 3809

Share



More