enable_afg
Turn on the function generator output after confirmation, driving the configured waveform. Requires a confirmation token from the initial call to execute safely.
Instructions
DANGEROUS: turn the function generator output on (a real signal starts coming out).
This is the only tool that makes the instrument drive a signal into whatever is wired to the generator output, so it needs the confirmation flow: the first call does not execute and returns a confirm_token, and only a second call carrying that confirm_token turns the output on. The token is bound to this channel, is single use, and expires.
Before asking for confirmation, read the settings back with get_afg_state and show the human user what is about to be driven (waveform, frequency_hz, amplitude_vpp, offset_v) - those values take effect the instant the output turns on. Then ask the human user what is connected to the generator output and whether it is safe to drive it. Never confirm on your own, and never drive a live or powered circuit.
Returns the settings of the channel in state, with output true. Turn the output off again with disable_afg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | ||
| confirm_token | No |