create

This block is part of the threads group and was last modified in core v10.4.28.

create v10.4.28

In pins 1 + flow
  • flow
    flow
  • name required
    value
Out pins 5 + flow
  • flow
    flow
  • Running
    condition
  • error
    value
  • On Startup
    execute_function
  • On Shutdown
    execute_function
  • On Message
    execute_function

Claims a named thread for the whole cluster and reports on `running` whether THIS node took it. The claim is per entity and per name, so exactly one node answers true no matter how many run the blueprint : which is what makes it the right place to put startup work that must happen once, given system_event_startup itself fires on every node. A node that loses answers running=false with error THREAD_ALREADY_CLAIMED; branch on `running` rather than assuming it. The claim is released by function_shutdown_thread, and lapses on its own shortly after the holding node stops.

A typical wiring for create: a function trigger starts the flow; the function out pin wires to an execute block.

Studio canvas example for the create block: typical wiring for create.

Version history

Introduced in v10.4.28.


Back to threads Return to the main group to view all sub-groups Back to threads Return to the group to view all blocks within this group