Skip to content

OLED graphs: set value on index (internal_oled_data_set)

What it does: Sets the value at the selected data array index and limits it to the selected range.

internal_oled_data_set

Inputs

  • IDX: value of type Value.
  • VAL: value of type Value.
  • list LIST: parameter selection in the block menu.
  • list RANGE: parameter selection in the block menu.

Output

  • None (statement block).

When to use it

  • When you need to adjust a specific point of the graph (correction, calibration).
  • For manual intervention in data history without adding a new sample.

Tips and pitfalls

  • Negative index helper ignores; the list remains unchanged.
  • If the index is beyond the end of the list, the helper automatically extends the list up to the given index.

Generated Python example

chart_data_0 = chart_data_set(chart_data_0, 3, 80, 0, 100)