set_signal_generator
Configure the built-in signal generator to produce waveforms with specified type, frequency, amplitude, and offset for testing and measurement applications.
Instructions
Configure the built-in signal generator (AWG).
Args: waveform_type: Type of waveform to generate. frequency_hz: Frequency in Hz. amplitude_mv: Peak-to-peak amplitude in millivolts. offset_mv: DC offset in millivolts.
Returns: Dictionary containing signal generator status and configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waveform_type | No | sine | |
| frequency_hz | No | ||
| amplitude_mv | No | ||
| offset_mv | No |
Implementation Reference
- src/picoscope_mcp/tools/advanced.py:9-34 (handler)The handler function for the 'set_signal_generator' tool, including decorator, parameters (schema), docstring, and logic (currently a TODO placeholder).@mcp.tool() def set_signal_generator( waveform_type: Literal["sine", "square", "triangle", "dc", "ramp"] = "sine", frequency_hz: float = 1000.0, amplitude_mv: float = 1000.0, offset_mv: float = 0.0, ) -> dict[str, Any]: """Configure the built-in signal generator (AWG). Args: waveform_type: Type of waveform to generate. frequency_hz: Frequency in Hz. amplitude_mv: Peak-to-peak amplitude in millivolts. offset_mv: DC offset in millivolts. Returns: Dictionary containing signal generator status and configuration. """ # TODO: Implement signal generator control return { "status": "not_implemented", "waveform": waveform_type, "frequency_hz": frequency_hz, "amplitude_mv": amplitude_mv, "offset_mv": offset_mv, }
- src/picoscope_mcp/server.py:19-19 (registration)Registration call that invokes the definition and registration of advanced tools, including set_signal_generator.register_advanced_tools(mcp)
- src/picoscope_mcp/server.py:9-9 (registration)Import of the register_advanced_tools function used to register the tool.from .tools.advanced import register_advanced_tools