attach_stim_backend
Bind a stimulation backend to a session and open its transport. Rehearse protocols with the log backend before switching to a real device.
Instructions
Bind a stimulation target to a session and open its transport.
Start with backend='log' to rehearse a protocol with no output at all, then switch once the timing looks right.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backend | No | One of the names from list_stim_backends. | log |
| options | No | Backend-specific settings. For serial backends: {"port": "COM3"}. For templated devices (tms, tes, template_serial), the commands from your device manual, e.g. {"port": "COM3", "templates": {"fire": "TRIG\r\n", "set_intensity": "AMP {intensity:.0f}\r\n"}}. | |
| session_id | Yes | The session to attach to. | |
| make_default | No | Use this backend when send_stim_event omits one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||