get_afg_state
Retrieve current function generator settings, including output state and channel parameters. Check whether the AFG output is enabled before adjusting signal configurations.
Instructions
Return the function generator settings, including whether the output is on.
With channel given, the settings of that channel are returned flat (channel, output, waveform, impedance, frequency_hz, amplitude_vpp, offset_v, phase_deg, duty_percent, symmetry_percent). With channel omitted, every generator channel is returned under channels, keyed by the channel number as a string: {"channels": {"1": {...}, "2": {...}}}.
output tells whether the generator is currently driving its connector. Reading never changes it. This is read-only: it costs about 9 queries per channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No |