measure_rise_time
Measure signal rise time from lower to upper threshold percentages using PicoScope oscilloscope data to analyze electronic signal transition speed.
Instructions
Measure signal rise time (10% to 90% by default).
Args: channel: Channel to measure. low_threshold_percent: Lower threshold percentage (0-100). high_threshold_percent: Upper threshold percentage (0-100).
Returns: Dictionary containing rise time in seconds.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| high_threshold_percent | No | ||
| low_threshold_percent | No |
Implementation Reference
- Handler function for 'measure_rise_time' tool, decorated with @mcp.tool() to register it with the MCP server. Defines input parameters (channel, thresholds) which likely serve as schema. Currently returns a not_implemented status as a placeholder.@mcp.tool() def measure_rise_time( channel: Literal["A", "B", "C", "D"], low_threshold_percent: float = 10.0, high_threshold_percent: float = 90.0, ) -> dict[str, Any]: """Measure signal rise time (10% to 90% by default). Args: channel: Channel to measure. low_threshold_percent: Lower threshold percentage (0-100). high_threshold_percent: Upper threshold percentage (0-100). Returns: Dictionary containing rise time in seconds. """ # TODO: Implement rise time measurement return { "status": "not_implemented", "channel": channel, "low_threshold": low_threshold_percent, "high_threshold": high_threshold_percent, }
- src/picoscope_mcp/server.py:18-18 (registration)Invocation of register_analysis_tools(mcp), which defines and registers the 'measure_rise_time' tool along with other analysis tools to the MCP server instance.register_analysis_tools(mcp)