How to Create Plots for Measurements

You can display live-plots in the measurement protocols to see what is happening during the measurement.

1. Configure Plots

To configure the plots click Define Plots / Fits in the protocol window. Here we bill be doing this for the For Loop measurement protocol created in the Tutorial.

Add a new plot by clicking the ➕ symbol and choosing a plot type.

../../_images/img_49.png

The x-axis is set by either typing the channel into the field or by right-clicking and adding the channel value with Insert Channel Value. We will be plotting the motorZ channel (y-axis) against For_Loop_Count (x-axis). Add a new y-axis with the ➕ symbol next to y-axes. Enter the motorZ channel via right click into the formula field. As with most fields you can to any mathematical operation as a string in this field (see examples above for more information). Select if the y-axis should be plotted on the left or right side of the x-axis.
img_50.png

Give the plot a x-label and y-label as well as a title.

A finished plot configuration (without a fit) could look like this for example img_51.png

2. Run Protocol with Plots

If you then run the protocol the plot is displayed and updated for every new data point that is measured.

../../_images/img_52.png

Note

For very fast measurements the plotting can be too slow and cause errors when displaying the plot. So especially when dealing with pure software instruments with very fast communication times it might help to add a wait time in the protocol. This is purely a displaying error and all data points are recorded correctly in the measurement file.

To get a working plot here you have to modify the protocol from before by adding a small Wait time of 0.1 seconds as the internal software sweep is too fast for the plot to follow.

img_53.png

⇧ Back to the top ⇧