BNC Triggered State Change -------------------------- Switches states when a TTL pulse arrives on BNC trigger channel 1. .. image:: bnc_triggered_state_change.svg :align: center .. tab-set:: .. tab-item:: Python .. literalinclude:: ../../../../examples/bnc_triggered_state_change.py :language: python :start-at: from bpod_core. .. tab-item:: JSON .. code-block:: json { "states": { "Port1Light": { "timer": 1.0, "transitions": { "BNC1_High": "Port2Light" }, "actions": { "PWM1": 255 } }, "Port2Light": { "timer": 1.0, "transitions": { "Tup": ">exit" }, "actions": { "PWM2": 255 } } } } .. tab-item:: YAML .. code-block:: yaml states: Port1Light: timer: 1.0 transitions: BNC1_High: Port2Light actions: PWM1: 255 Port2Light: timer: 1.0 transitions: Tup: '>exit' actions: PWM2: 255