AgentSkillsCN

device-control

可操控包括示波器、可编程电源及其他各类电子测试设备在内的多种测试仪器。当用户提及示波器、电源、函数发生器、万用表等电子测试设备时,即可调用此技能。支持读取测量数据、截取屏幕截图、设置参数以及执行自动化测试等操作。

SKILL.md
--- frontmatter
name: device-control
description: Control electronic test equipment including oscilloscopes, programmable power supplies, and other test instruments. Use when user mentions electronic test devices like oscilloscopes, power supplies, function generators, multimeters, etc. Supports operations such as reading measurements, capturing screenshots, setting parameters, and running automated tests.

Device Control Skill

此 skill 用于协调控制电子测试设备。

可用设备 Skills

根据设备类型使用对应的 skill:

设备类型Skill说明
示波器@oscilloscopeYokogawa 示波器控制 - 读取均值、截图
电源@power-supply可编程电源控制 - 设置电压、开关输出
程控电阻@programmable-resistorRM550 电阻控制 - 设置阻值

使用方法

根据需求使用对应的专业 skill:

  • 示波器操作 → 使用 @oscilloscope skill
  • 电源操作 → 使用 @power-supply skill
  • 电阻操作 → 使用 @programmable-resistor skill

设备连接排查

当设备命令执行失败(如 "未找到 VISA 设备" 或 "未找到串口设备")时,请手动绑定设备到 WSL:

步骤 1: 在 Windows 上(PowerShell)

powershell
# 安装 usbipd(如果未安装)
winget install --id=USBIPd

# 查看可用的 USB 设备
usbipd list

# 绑定设备到 WSL
usbipd bind --busid <BUSID>

步骤 2: 在 WSL 中 attach 设备

shell
pwsh.exe -c "usbipd attach --wsl --busid <BUSID>"

提示

  • 示波器:通常显示为 "DLM series" 或 "Yokogawa"
  • 电源:通常显示为 "USB Test and Measurement" 或 ITECH 型号
  • 程控电阻:通常显示为 "RM550" 或 "PRO" 开头