Configuring sampling settings can improve chart performance and make the data easier to view and interpret.
Prerequisites:
- Open Chart view (in
Workbench or browser) on a component that has a history extension with at least 200 data points. The number of data points in a chart
can be determined by viewing the
Available Data Points as shown in the tab.
This procedure describes turning on sampling and setting the sample size to reduce the number of data points in the chart.
This is useful for devices with a small amount of memory, you can avoid loading a large chart on the device.
Perform the following steps:
- Click the Settings icon
- In the Settings dialog, click the Sampling tab.
- On the Sampling tab, click the checkbox to deselect
Auto Sampling.Value = false, auto sampling is disabled.
- Click the checkbox to turn on
Sampling Value = true, sampling is turned on.
- In
Sample Size field, change value to less than that shown in the Available Data Points field. For example, if Available Data Points are
200, change Sample Size to 100.
- Click OK.
Sampling is turned on, The chart is immediately replotted according to sampling settings. The effect of this change on a line
chart, for example, is that the line appears more segmented, you see fewer data points in the chart, which can make it easier
to see individual data points and and interpret the data.
NOTE: The whole data set still exists but not all points are shown in the chart.
- Once sampling has begun, the sampling period is shown adjacent the time range summary at the bottom of the chart. Click on
the sampling text to easily reopen the Sampling tab.
Notice the added property, Sampling Period, is now visible. The read only field displays an average of the amount of time between each of the points that have been
sampled.
- Click OK.
At this point, you can export or save the chart with the sampling changes or turn sampling off if no longer needed. To turn
off sampling, simply click to deselect Sampling in the Command Bar. The chart is immediately redrawn using the whole data set.
NOTE: Turning Sampling off in this manner also turns off Auto Sampling behavior until the chart is reloaded.