Tour #5: Logging Data

Recording data in New Measurements mode is discussed in detail in Chapter 9, but here we show the basics. Logging control functions are found on function key levels 1 and 5 (Figure 3‑53).

Figure 3‑53. Logging begins with choosing a destination for the logged data.

Logging Data Manually

Below is a step-by-step example in which we’ll open a file, and store some data.

Experiment #1 Log a data set manually

Start out in New Measurements mode.

  1. Press 1 (if necessary) to bring up the logging control keys
  2. Shown in Figure 3‑53.
  3. Press f1 (Open LogFile).
  4. This is how to select where data are to be recorded. Normally this is a file, but the comm port is also a possible destination.
  5. The Standard File Dialog
  6. You are shown the Standard File Dialog. This screen will appear anytime you need to enter a file name. This dialog is fully described on page 5-9 in the instruction manual, but we’ll cover some important features of it here.
  7. The top line of the dialog shows the directory in the file system where you will be writing your log file. Normally, this should be /User. Below that is a list of the files in that directory. If you wish to change directories, press f1 (Dir).
  8. Exploring the file list
  9. You can scroll through the file list, and even sort it, by pressing the up or down arrow key (▲ or ▼). The highlighted bar will jump from the file entry line to the list below, and you can then scroll up and down through the list, using ▲, ▼, home, end, pgup, and pgdn.
  10. Figure 3‑54. Highlighted bar dropped down to the file list.
  11. While you are down in the file list, there are some things that you can do: Press labels, and you’ll see the second level of fct keys:
  12. Figure 3‑55. Manipulating the file list in the Standard File Dialog.
  13. Another thing you can do is sort the list. Press f2 (or just S). You can sort by Name, Date, or Size, and in Ascending or Descending order.
  14. Figure 3‑56. Sorting options.
  15. Note that after the sort, the highlighted file remains the highlighted file; you’ll have to scroll up or down to see where you are in the list.
  16. Example: To find the most recently created or modified file in the list, press the following key sequence: S D D home. (That is, Sort on Date in Descending order, then jump to the top of the list).
  17. You "exit" the bottom box by pressing enter or escape: If you wish to pick one of those existing files as the destination, highlight it, and press enter. Otherwise, just press escape and the file name entry line will remain unchanged (Figure 3‑57).
  18. Figure 3‑57. "Exiting" the bottom file list box. Enter selects the name, escape does not.
  19. Press labels to access the editing keys, then f1 (DelLn) to clear the default name, then type Experiment 1, and press enter.
  20. Figure 3‑58. The editing fct keys for the Standard File Dialog.
  21. There are some illegal characters for file names (such as ’:’ and ’/’), but this dialog won’t let you type them. Spaces are ok.
  22. If you enter the name of a file that already exists, you will be given the choices of overwriting it, appending to it, or cancelling to enter a different name.
  23. Enter initial remarks.
  24. You’ll be shown the remark entering box (Figure 3‑59). Type a remark if you wish, and press enter.
  25. Figure 3‑59. The prompt for entering remarks into a log file.
  26. Redo Experiment #1 Humidity vs. Flow Rate.
  27. At each equilibrium value (that is, at the end of steps 4, 6, 8, and 9 of Experiment #1), press Log (f1 level 1) to record data at those moments.
  28. While the log file is open, the level 1 f1 function key label (Figure 3‑60) will show the number of observations logged.
  29. Figure 3‑60. Level 1 function key labels when logging to a file.
  30. Graph the data
  31. Earlier we showed how to view strip charts of data in real time. Now we’ll show how to graph data you’ve recorded before closing the data file.

Viewing Stored Data

It is convenient - and sometimes necessary - to examine the specific data that has been logged, to see if the experiment is going as planned, or if an adjustment (such as a career change) is necessary.

When logging is active (to a file), you can view logged data by pressing View File (f2 level 1).

Experiment #2 View Data Logged Thus Far

You can view data in your log file right from New Measurements mode, as long as the file is still open.

OPEN’s Graphics Packages

OPEN uses two graphics packages: Real Time Graphics is used to plot measurements as they happen. GraphIt, on the other hand, is only used with data that is stored in a file.

  1. Access GraphIt
  2. Press 1 (if necessary), then f2.
  3. After a few seconds, you will see something like Figure 3‑45.
  4. Figure 3‑61. The first time GraphIt is entered from New Measurements mode.
  5. This is GraphIt, a useful program that appears in several contexts, and is explained thoroughly in Chapter 12 in the instruction manual. For now, just follow along, and we’ll make some graphs.
  6. View the data file as stored
  7. Press f3, then F (Figure 3‑62).
  8. Figure 3‑62. GraphIt’s View File screen. provides options to view the file or subsets thereof, or to view curve fit coefficients and errors.
  9. After pressing F, you should see something like Figure 3‑63a. If you press pgdn, you’ll see more of the file (Figure 3‑63b).
  10. Figure 3‑63. Viewing a file “as stored”. a) This is the header information at the top of the file. b) After pressing pgdn, the rest of the file is shown. An explanation of the top line banner in each figure is given in Figure 5-2 on page 5-3 in the instruction manual.
  11. The little blocks (•) are tab characters, which is the default delimiter.
  12. If you could see all of the file at once, it would look like Figure 3‑64. If this seems an inconvenient way to view the data, keep reading (it gets better).
  13. Figure 3‑64. Experiment 1 as stored. The lines have been shortened to fit the figure ( represents tabs).
  14. View the Header
  15. Press escape to stop viewing the file “as stored”, and then press H (for Header). You will see, in convenient tree form, all the configuration and calibration information for the system as it was when you opened the file (Figure 3‑65).
  16. Figure 3‑65. Configuration information is contained in the open node, and calibration information is in the li6400 node. Expand and browse as you wish.
  17. View the data file in columns
  18. Press escape to stop viewing the header tree, then press D (for Data Set). You will see a more legible display (Figure 3‑66).
  19. Figure 3‑66. Viewing the data set in column format. Only the data is shown. Use shift ► and shift ◄ to page left and right, and ctrl ► and ctrl ◄ to move one column at a time.
  20. Define a plot
  21. Press escape twice to stop viewing the data in columns and return to Graph-It’s main screen. Then press f4 (Edit Config) to define the axes for the plot.
  22. Figure 3‑67. GraphIt’s configuration editor screen. For details, see Using Edit GrafDef on page 12-7 in the instruction manual.
  23. Put Flow on the X axis, autoscaled
  24. Press X. If you are presented with
    • V - change variable
    • R - change range
  25. then press V. (This choice will not appear if the X axis is currently undefined.) You will see a menu of variables, obtained from the label line in the data file. Scroll down (probably 5 pgdn’s from the top) until you find Flow. Highlight it and press enter.
  26. Now set the range. (If you had to press V to change the variable, you’ll have to press R now to set the range.) You’ll be asked for the minimum and the maximum of the axis (Figure 3‑68). For each, just press enter to accept * for the value.
  27. Figure 3‑68. Range information is obtained in two prompts. Enter a * for either the min or the max to let that value be adjusted according to the data being plotted.
  28. When you are done, if the display does not return to the menu shown in Figure 3‑68, you’ll have to press escape.
  29. Put RH_S on the Y axis
  30. Press Y to pick a Y variable. (If you get the V/R choice again as in Step 6, press V). Highlight RH_S, and press enter.
  31. Now press escape to signal no more Y variables (you’ll be asked for up to 5 variables for this axis, and you only want one).
  32. Now enter * for the Min and again for the Max. (If the min and max are not automatically asked, press R to do this).
  33. Press escape until you get back to GraphIt’s main screen.
  34. Plot the graph
  35. If it didn’t plot automatically upon leaving the configuration editor, then press f2 to plot the graph (Figure 3‑69).
  36. Figure 3‑69. Sample humidity as a function of flow rate from Experiment #1.
  37. These data illustrate the concept of an operating envelope for humidity control; if we draw a line around these data, we draw the envelope (Figure 3‑70).
  38. Figure 3‑70. The operating envelope from Experiment #1. Inside the shaded area is achievable, outside is not.
  39. Save this definition for future use.
  40. Press escape to stop viewing the graph, and return to GraphIt’s main screen. Press f5 (Config SaveAs), and name the file “RH & Flow”. (Storing this file uses the Standard File Dialog again, just as you saw when you opened a log file.)
  41. Quick! Plot something else!
  42. From GraphIt’s main screen, press f1 (Import Config). You’ll be presented with a menu of plot definitions, which should include “RH & Flow”, or whatever you named it in the last step. Just for fun, let’s pick another one. Try selecting “A-Ci Curve” at the top of the list. You’ll get a very uninspiring plot (Figure 3‑71) but it illustrates how to quickly change plot definitions.
  43. Figure 3‑71. A-Ci data from Experiment #1.
  44. Replot RH and Flow…
  45. Press escape, then f1 (Import Config), and select “RH & Flow”, to redraw to our first plot.
  46. …and view the plotted data
  47. Instead of pressing escape to stop viewing the graph, you can press V, and a scrollable menu of the data points that are plotted will appear (Figure 3‑72).
  48. Figure 3‑72. Pressing V after drawing a plot in GraphIt will generate a list of the data points plotted.
  49. Press escape to exit from this.
  50. Return to New Measurements mode, and close the file
  51. Press escape until you get back to New Measurements Mode, then press f3 (Close File).

That concludes the introduction to GraphIt, the tool for viewing logged data. It is accessible from New Measurements mode for a file that is open for logging, and also from the Utility Menu for previously logged files. GraphIt is fully described in Chapter 12 in the instruction manual.

Automatically Logging Data

OPEN’s mechanism for automatic operation is the AutoProgram. An Auto-Program is a list of instructions that the instrument should do, which typically includes setting controls and logging data. OPEN includes a small collection of AutoPrograms for various common tasks (described in AutoPrograms on page 9-29 in the instruction manual), but you can modify these and add to the collection.

Experiment #3 Log Data At Regular Intervals

We’ll demonstrate AutoPrograms with one that logs data at regular intervals. Start in New Measurements mode.

  1. Open a data file
  2. Press Open LogFile (f1 level 1) to name and open a data file.
  3. Pick the AutoProgram “AutoLog2”
  4. Press 5 then f1. A menu of AutoPrograms will appear. Select the one named AutoLog2, and press enter (Figure 3‑73).
  5. Figure 3‑73. Selecting an AutoProgram.
  6. Append to current log file?
  7. Whenever you launch an AutoProgram with a data file open, you’ll be asked if you’d like to append to that file (Figure 3‑74).
  8. Figure 3‑74. Starting an AutoProgram with a data file already open.
  9. Configure the program
  10. You will be shown a configuration screen (Figure 3‑75). Set it to log every 15 seconds over 3 minutes.
  11. Figure 3‑75. Configuring AutoLog2.
  12. Watch
  13. Press 1 to view the Log key label. Every 15 seconds, the number of observations will increment by 1.
  14. Press K to watch the AutoProgram status line (Figure 3‑76).
  15. Figure 3‑76. The AutoProgram status line includes Program, the time remaining, and ProgPrgs, the current and total program steps.
  16. Normally, Program shows the number of seconds until the next event (typically, that event is data logging) will happen, and ProgPrgs (“Program Progress”) shows the number of logging events so far, and the total number when done. With AutoLog2, however, Program shows the time remaining in the whole program.
  17. Terminate it
  18. To stop an AutoProgram before it is done, press escape, then A (Figure 3‑77).
  19. Figure 3‑77. The AutoProgram Exit screen. Pressing A will terminate the Auto-Programs, P will pause, T will trigger the next step in the AutoProgram, and escape will let the AutoProgram resume
  20. Notice the T option in Figure 3‑77. Normally, this triggers the next step in an AutoProgram. With AutoLog2, however, it too will terminate the program. (If you want to log early with AutoLog2, just press the Log key.)
  21. Close the data file
  22. Press 1 then f3 (Close File) to do this. Notice that AutoPrograms don’t automatically close data files. You can open a file for logging, then run several AutoPrograms, accumulating data in that file. However, if you launch an AutoProgram without having a log file open, you will be asked to open one. A complete discussion of AutoPrograms is in Chapter 9 in the instruction manual.

Stability

An important question concerning data logging is when to do it. That is, do I log now, or should I wait longer for things to be more stable? Manual logging usually involves that question being handled at some conscious level by the operator. Running an autoprogram, however, leaves that decision to the machine.

Are there objective criteria that can be used by both the machine and the operator to decide on stability?

We wouldn’t ask that if the answer weren’t yes, and indeed, OPEN provides a fairly powerful technique for you to define and use stability criteria. f4 level 5 (Define Stablty) lets you select your standards for stability, and we’ll go there next.

Experiment #4 Set Up System Stability Criteria

Start in New Measurements mode.

  1. Press f4 level 5.
  2. You’ll see a screen similar to Figure 3‑78, listing the current stability criteria.
  3. Figure 3‑78. Defining stability, accessed by f4 level 5.
  4. Each variable to be considered is listed, along with the time period and relevant thresholds.
  5. Clean out the list
  6. If there are items in the list, highlight each and press Remove (f3) until there are none. This is not normal operating procedure, but it gives us a clean slate to work with.
  7. Figure 3‑79. All entries removed (except the label).
  8. Build a definition
  9. Now, we need a definition of stability. An obvious one would be to look at photosynthesis and conductance. Over the course of a minute, if photosynthesis changes by less than 0.1 μmol m-2 s-1, and conductance changes by less than 0.05 mol m-2 s-1, then we could consider that stable.
  10. For purposes of an introductory tour, however, let’s pick reference cell CO2, sample cell CO2, and leaf temperature. (There’s no logic to this combination, but it’ll work fine for our example.) A good rate of change threshold for the CO2 values might be 1.0 ppm per minute, and 0.1 degree C per minute for the leaf temperature.
  11. We have been referencing rates of change as “per minute”. Does this mean we have to wait 1 minute after stability is achieved to see if it holds? No. Instead, we’ll specify some time period, such as 10 or 20 seconds, over which OPEN will keep running statistics; at any instant, if the rates of change over the last 10 or 20 seconds meet our criteria, then stability is reached.
  12. There is a danger to doing it this way, however. A fluctuating signal could happen to have a rate of change near zero for an instant during a transition from “going up” to “going down”, which could cause an AutoProgram to be fooled into logging too soon.
  13. We can prevent this by specifying a second parameter, such as standard deviation or coefficient of variation, in addition to a rate of change (hereafter called slope, or abbreviated Slp). Table 3‑3 illustrates our “tour stability criteria”, designed to avoid being fooled by a fluctuating signal.
  14. Table 3‑3. Example stability criteria.
    Quantity Slope St Dev
    CO2R < 1.0 < 1.0
    CO2S < 1.0 < 1.0
    Tleaf < 0.1 < 0.1
  15. Add CO2R, CO2S, and Tleaf to the list
  16. Press the Add function key (f2). A list of variables will appear (Figure 3‑80).
  17. Figure 3‑80. Adding a variable.
  18. Select -1:CO2R, and press enter. Press Add (f2)again, and this time select -2:CO2S. Do it a third time and select -10:Tleaf (Figure 3‑81).
  19. Figure 3‑81. After clearing the list, and adding CO2R and CO2S, and Tleaf.
  20. Notice the default setting for each item is to check for slopes, with a threshold of 1.
  21. Change the label
  22. Set the label to Exp#4.
  23. Figure 3‑82. Changed the label.
  24. Want to make changes?
  25. Highlight CO2R, and press Edit (f1) or enter (Figure 3‑83). Here we see the options for each item in the stability list: the variable (quantity to be tracked), time period (seconds), coefficient of variation (in percent), rate of change (per minute), and standard deviation.
  26. Figure 3‑83. Editing an entry in the stability list. Time(s) is time period for the running computations, StdDev is standard deviation, CV(%) coefficient of variation, as percent, and Slp is slope (rate of change with time).
  27. This is how you can select the time period, and enable or disable any combination of the three possible statistics for a variable. Press Done (f5) to exit the Stability Item Editor.
  28. Exit the editor
  29. Press OK (f5) to exit the Stability Editor, and return to New Measurements mode.
  30. In the next part of the tour, we’ll see how to check on the system’s stability during operation.

Experiment #5 Monitor Stability In New Measurements Mode

  1. Bring up display line ’e’
  2. Display line e contains two system variables that tell you moment by moment if the system has achieved your definition of stability. In the example in Figure 3‑84, one of the three is stable.
  3. Figure 3‑84. Display line e shows three stability indicators. Stable shows the number of stable variables and the total number checked. StableF is the decimal equivalent of that fraction. The third quantity CCT (in this case) indicates which variables are stable or not.
  4. Close the chamber, Pump On, Soda Lime Full Scrub
  5. Close the chamber, turn on the pump, put the soda lime on full scrub, and watch display line e, as one by one, the variables become stable.
  6. If you are thinking that waiting for “000” to become “111”, or “0/3” to become “3/3” is not particularly informative, we’d agree.
  7. There is a way to see the details of your stability checking:
  8. Diagnostic Mode, Screen A
  9. Press [ (left square bracket) to enter Diagnostics Mode. (That’s the short cut. The long way is to press 6, then f5, labelled Diag Mode). You should see something like Figure 3‑85. (If not, press A, and it will come into view.)
Figure 3‑85. Diagnostic display A monitors the details of the stability computations. If there are more than 4 quantities in the definition, ◄ and ► will scroll the columns, while home and end jump to the left and right limits.

This is one of several diagnostic screens. (Quick Lesson: You press letters a, b, etc. to jump between the screens in diagnostics mode. To leave diagnostics mode and return to the normal New Measurements text display, press [.) In diagnostic display A, you can monitor all the details of your stability criteria.

When a variable is not stable, it is marked with an asterisk, and the reason (such the rate of change too large) is highlighted. Thus, there are two ways to check on stability: line e for a quick glance, or [ (then a, if necessary) for the details.

For more on Diagnostics Mode, see Diagnostics on page 6-24 in the instruction manual.

AutoPrograms, Stability, and Matching

Most of the default AutoPrograms can make use of this stability feature, and it takes the form of a Stability Definition node in the setup window. To see an example, try the next experiment.

Experiment #6 View stability and matching setup in an AutoProgram

  1. Re-open AutoLog2
  2. Re-open AutoLog2, but do not launch it yet.
  3. Change from time to stability
  4. Change the node Wait for from time to stability (Figure 3‑86). There will be some extra nodes that appear.
  5. Figure 3‑86. When stability is part of an AutoProgram, there will be two parts: The min and max wait times, and the stability definition.
  6. Stability wait contains the minimum and maximum waiting times for stability to occur. Stability Definition contains the stability definition that will be implemented if the AutoProgram is launched. Note that this definition is not necessarily the currently active one - it is independent, and stored with the AutoProgram’s other parameters. If you launch the AutoProgram, its stability definition is implemented, and remains in effect once the AutoProgram finishes.
  7. It will be the stability definition present the next time that AutoProgram’s setup screen appears AutoPrograms use stability along with a minimum and maximum wait time.
  8. When logging (each point on a light curve, for example), the program will wait the minimum time (after setting a new light level), then start checking stability and log when the stability definition is met. If this doesn’t happen by the maximum time, it will log anyway, and move on to the next step.
  9. You can change the currently active stability definition anytime, even while an AutoProgram is running.
  10. Navigate up to the Match before log node
  11. This is the node that control matching. Navigate to it and press f2 (edit). You will see it toggles through three settings (Figure 3‑87).
  12. Figure 3‑87. Configuring matching for an AutoProgram.
  13. These are your matching options for AutoPrograms that have this node: you can never match, always match before logging, or only match if certain conditions are met. The conditional match occurs if at least one of the conditions is met: a) time since last match, b) change in CO2 since last match, or c) a small CO2 differential (the smaller the differential, the more important the match).
  14. When matching does occur, there is a post-match recovery time to allow stability to be re-achieved, and the minimum and maximum wait times for that are editable.
  15. Cancel the AutoProgram
  16. Press f4 (cancel).

Log Options

The next stop on the data logging tour will look at Log Options.

Experiment #7 Log Stability Variable Statistics

Start out in New Measurements mode.

  1. Access Log Options
  2. If you have a log file open, close it (f3 level 1). Log Options is f3 level 5. When you press it, you will see something like Figure 3‑88.
  3. Figure 3‑88. Log options.
  4. The entries in this menu give you several options for how your log file will look, and what is logged. The details are discussed in Log Options on page 9-14 in the instruction manual, but for now, focus on the fourth item, Stability Details. Setting this to Logged (Figure 3‑89) by highlighting it, and pressing Edit or enter, will cause the details (mean, standard deviation, coefficient of variation, and rate of change) of your stability variables to be included in your log file with each observation.
  5. Figure 3‑89. Stability details will be logged.
  6. Enable Stability Details
  7. Highlight Stability, and press Edit (f2). The line should change to Stability: Logged.
  8. Exit Log Options
  9. Press OK (f5) to leave Log Options.
  10. Open a log file, and log a couple of dummy observations
  11. Press 1 then f1, and enter a destination file name, remarks, etc. Then press f1 (Log) a couple of times to log some data.
  12. View the file
  13. Press f2 (View File), then f3 (View Data), then D (view Data set). You should see the first 4 columns of the data file:
  14. Figure 3‑90. Viewing the data in columns.
  15. Now scroll to the right by pressing shift + . (You can get to the end of the line quickly by pressing shift + end). Eventually, you’ll see something like Figure 3‑91.
  16. Figure 3‑91. Scrolled way to the right.
  17. Status is normally the last column. There will be 15 columns appended, containing the stability details. For each of the CO2R, CO2S, and Tleaf stability variables, there will be a N(), MN(), SD(), CV(), and SLP() columns, with the variable name in the parentheses (). N() is the number of samples, MN() is the mean value of those samples, SD() is standard deviation, CV() is coefficient of variation, and SLP() is slope, or rate of change.
  18. Return to New Measurements
  19. Press escape three times to get back to New Measurements, then close the file by pressing f3 (Close File).
  20. If you wish, you can go back and turn off stability logging now, or just leave it. The Log Options always revert back to their default settings at power on.

Experiment #8 Make an Excel File

You may have noticed one of the log options is Excel File: This option (which by default is Yes) creates an Excel version of your data file - with all equations built-in - in addition to the normal text version. For example, with this option set to Yes, when you open a log file named Data, there will also be another file created named Data.xls.

  1. Access Log Options
  2. If you have a log file open, close it (f3 level 1). Then access Log Options (f3 level 5) (Figure 3‑92).
  3. Figure 3‑92. The Excel File option is in Log Options.
  4. Create an Excel file (if necessary)
  5. If the Excel File option has been enabled, and you have logged some data, you will already have an Excel file to work with. Otherwise, set it to Yes, and go open a log file (f1 level 1), log some data, and close the file.
  6. Move an .xls file to your computer.
  7. If you haven’t done this before, there are many options, depending on your computer (Windows, Mac OSX, Linux), and whether you have a LI-6400XT or not (Ethernet or RS-232); this is all spelled out in detail in Chapter 11 in the instruction manual. For purposes of this step, we will assume you have made either a direct Ethernet connection between the LI-6400XT and your PC, or else both are plugged into the same local sub network.
    1. To verify you are connected, and to see your host name and IP address, access Network Status in the Utility Menu (Figure 3‑93).
    2. Figure 3‑93. Network Status.
    3. Connect the LI-6400XT file system to your computer using Windows Explorer (Figure 3‑94) or Max OS X Finder (Figure 3‑95).
    4. For Windows:
    5. Figure 3‑94. Connecting to the LI-6400XT file system using Windows.
    6. For macOS:
    7. Figure 3‑95. Connecting to the LI-6400XT file system using Finder.
    8. Navigate to the User directory
    9. Drag the Excel file you like to view to the desired folder on your PC, and open it with Excel (Figure 3‑96).
    10. You could simply double click it to open it without moving it to your PC, but, note the cautionary box on the next page.
    11. Figure 3‑96. Sample .xls data file. Columns marked with "out" (Row 10) are defined by equations.
    12. Change leaf area, and see it recompute automatically for that row.
    13. Note that some columns are marked "in", and some are marked "out" (row 10). The "outs" have equations associated with them so are computed, and the "ins" are simply inputs. Thus, if you change an input value, such as Area (column M), all the out columns in that row that are a function of area (such as Photo, column G) will change automatically.

Opening an Excel file that is on the console

This is OK.

This is OK even if the file is still active. However, as new observations are logged, you will not see them in Excel unless you re-open the file each time you want to check on it.

One thing to avoid if it is still an active file: Do NOT write to it. That is, do not overwrite the .xls file on the console. (Save it as an .xlsx, or save it somewhere else, but don’t write to the original while it is still being used by the LI-6400, or it may become corrupted.)