measure_rise_time
Measure signal rise time on PicoScope oscilloscopes by calculating the time between user-defined percentage thresholds on specified channels.
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 | ||
| low_threshold_percent | No | ||
| high_threshold_percent | No |
Implementation Reference
- The handler function for the 'measure_rise_time' tool. Defines input parameters (channel, thresholds) and currently returns a 'not_implemented' status with TODO for actual logic.@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)Top-level registration call in the MCP server that includes the measure_rise_time tool via register_analysis_tools.register_analysis_tools(mcp)
- src/picoscope_mcp/server.py:8-8 (registration)Import of the registration function for analysis tools, which includes measure_rise_time.from .tools.analysis import register_analysis_tools