pdh-locking

Control PDH optical cavity locking via a FastAPI service.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Plan1014/LabPilot --skill pdh-locking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdh-locking
Source: https://github.com/Plan1014/LabPilot/tree/main/skills/pdh-locking
Command: npx skills add https://github.com/Plan1014/LabPilot --skill pdh-locking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a programmable client to control and monitor a PDH (Pound-Drever-Hall) optical cavity locking system exposed by a FastAPI service on http://127.0.0.1:8001, enabling reliable lock operations and parameter tuning.

Core Features & Use Cases

  • Manage PDH lock state (lock/unlock) and query status.
  • Configure PID (kp/ki/kd) and modulation parameters, export waveforms, and monitor power.
  • Use cases include automated lock calibration, remote instrument control, and integration with lab experiments.

Quick Start

Connect to the PDH service at http://127.0.0.1:8001 and set kp, ki, and kd to recommended values.

Frequently Asked Questions about pdh-locking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I control a PDH optical cavity locking system via an API?

You can control PDH optical cavity locking by interacting with a FastAPI service to manage lock states, set PID parameters, and query lock status. This enables reliable remote lock operations and parameter tuning for lab experiments.

What is the best way to automate Pound-Drever-Hall lock calibration?

Automating Pound-Drever-Hall lock calibration involves using API endpoints to set modulation parameters and tune PID values like kp, ki, and kd. The system applies safety checks for lock state verification and power-based validation during the process.

Can I use FastAPI to monitor power and export waveforms in a lab environment?

Yes, you can use FastAPI to monitor power and export waveforms in a lab environment. The service supports querying lock status, monitoring power across lab environments, and exporting waveforms for remote instrument control and integration.

How do I configure PID parameters for a PDH lock control system?

To configure PID parameters for a PDH lock control system, connect to the FastAPI service and set the kp, ki, and kd values to recommended levels. This allows precise tuning of the optical cavity locking behavior.

Does the PDH locking service support async task handling?

Yes, the PDH locking service supports async task handling guidance alongside endpoints interaction. It includes safety checks for lock state verification and power-based validation to ensure reliable operations.