Create data source
create_data_sourceIngest live external data from JSON/CSV URLs, OSC messages, or serial devices. Extracted numeric fields become binding-ready channels for visualization.
Instructions
Ingest live external data onto a binding-ready channel/table — the input counterpart to create_data_visualization and bind_to_channel. 'json'/'csv' poll a URL with a Web Client DAT (and cook from a static sample of fields when no url is given, so it works offline); 'osc' listens on a UDP port; 'serial' reads a device. Numeric fields become channels on an output Null CHOP (named for each key) so other tools can bind to them; the raw text is exposed on a Null DAT. Live OSC/serial values only appear when a sender/device is present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Where the data comes from: 'json' or 'csv' poll a URL with a Web Client DAT (or, with no url, cook from a static sample so it works offline), 'osc' listens for OSC messages on a UDP port, 'serial' reads a serial device. json/csv always cook; osc/serial only carry values once a sender/device is present. | json |
| parent_path | No | COMP to build the data source inside. | /project1 |
| name | No | Base name for the created sub-network. | |
| url | No | (json/csv) Endpoint the Web Client DAT fetches. When omitted the network still cooks from a static sample so other tools have channels to bind to. | |
| port | No | (osc) UDP port to listen on. Defaults to 7000. | |
| device | No | (serial) Serial port, e.g. 'COM3' on Windows or '/dev/tty.usbserial' on macOS. | |
| baud | No | (serial) Baud rate. | |
| fields | No | Numeric keys to extract. Each becomes a channel on the output Null CHOP (named for the key) so create_data_visualization / bind_to_channel can bind to it, and a column in the offline sample table. | |
| poll_seconds | No | (json/csv) How often the Web Client DAT re-fetches the URL. | |
| expose_controls | No | Surface live 'Active' and 'Poll' controls on the source operator. |