What Kelvin Can Do

Besides answering questions, Kelvin can act in your project. Each action it takes is listed in its reply, so you can see what changed.

  1. Answer questions about your project
  2. Build panels
  3. Image overlays
  4. Notes and the cursor
  5. Align signals in time and space
  6. Look at the data
  7. Write and run Python scripts
  8. 4D-STEM detectors
  9. Ask you for a value

Answer questions about your project

Kelvin always knows the names, types, units and time ranges of your signals, the panels on the canvas, your notes and the start of your text panels. Ask What signals are in my project?, Which dataset is the camera? or How long did the heating ramp take?

To answer questions about the values themselves (What is the peak temperature?), Kelvin needs Signal data access. See Data Access and Privacy.

Build panels

  • Plot one or more signals on a new panel, optionally at a position on the canvas.
  • Add signals to a panel that is already open.
  • Create an XY graph of one signal against another.
  • Create a text panel and write into it, for example a summary of the experiment.
  • Rename a panel.

Image overlays

On an Image Viewer panel, Kelvin can put another signal on top as an overlay, change the overlay’s colour map and opacity, and remove it again.

Notes and the cursor

Kelvin can add a timestamp or timespan note to the timeline, remove a note, and move the timeline cursor to a moment, for example “Put a note where the pressure peaks and move the cursor there”.

Align signals in time and space

Kelvin can correct where a signal sits, using the same mechanism as the controls you would use by hand:

  • In time: shift a signal, or every signal from the same file, earlier or later, or set its offset to an exact value. This is the same offset the sync tool applies, so the timeline, the panels and the saved project show the result exactly as if you had dragged it.
  • In space: shift an image on the sample, or set its X and Y offset, as in the image’s Alignment section.

Kelvin reads the result back after each change, so it can check it and correct it further. For example: “The camera clock is 2.5 seconds behind the heating log. Fix it.”

Look at the data

With Signal data access on, Kelvin can read signal values (to find peaks, compute statistics or check a trend) and look at a picture of a panel. The reply then shows what it looked at, under What Kelvin looked at.

Write and run Python scripts

Kelvin can write a Python script for work that needs real computation, such as smoothing a signal, fitting a curve or deriving a new signal. The script is saved in your project. Kelvin can ask to run it, but it only runs after you click Run; see Approving a script.

Scripts always work on the real data, whether or not Signal data access is on.

4D-STEM detectors

On a 4D-STEM panel, Kelvin can set a virtual detector and apply it to the scan.

Ask you for a value

When Kelvin needs something only you can tell it, such as the moment an event started or the region of an image to measure, it asks with a form and a picker. See Answering Kelvin’s questions.