Skip to content

Program

Blocks in toolbox order:

Practical principles

  • Use code after start for initialization, which should be done only once.
  • The program loop is for repeated actions, so don't put unnecessary blocking waits in it.
  • The program section is mainly used to organize the code, and when turned off, it is not written to the result at all.
  • Use embedded Python sparingly, degrades portability and block validation.
  • Put critical cleanup (file, peripherals) in termination logic.

Use pvstore to save settings via restart. Screen design is described by Graphic Designer Block.

You can check the order of commands and the status of variables using program debugging. Breakpoints and tracepoints are set in the command context menu; they are not separate toolbox blocks.