measure_pulse_width
Measure pulse width at specified threshold on oscilloscope channels to analyze signal timing characteristics and duration parameters.
Instructions
Measure pulse width at specified threshold.
Args: channel: Channel to measure. threshold_percent: Threshold percentage for pulse measurement (0-100).
Returns: Dictionary containing pulse width in seconds.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| threshold_percent | No |
Implementation Reference
- Handler function for the 'measure_pulse_width' MCP tool. It is decorated with @mcp.tool() for registration and provides input schema via type hints. Currently returns a 'not_implemented' stub.@mcp.tool() def measure_pulse_width( channel: Literal["A", "B", "C", "D"], threshold_percent: float = 50.0 ) -> dict[str, Any]: """Measure pulse width at specified threshold. Args: channel: Channel to measure. threshold_percent: Threshold percentage for pulse measurement (0-100). Returns: Dictionary containing pulse width in seconds. """ # TODO: Implement pulse width measurement return { "status": "not_implemented", "channel": channel, "threshold": threshold_percent, }
- src/picoscope_mcp/server.py:18-18 (registration)Call to register_analysis_tools which defines and registers the measure_pulse_width tool along with other analysis tools.register_analysis_tools(mcp)
- src/picoscope_mcp/server.py:8-8 (registration)Import of register_analysis_tools function from analysis.py.from .tools.analysis import register_analysis_tools