MCPInstall

visa-debug

当需要调试 GPIB/USB/TCP/Serial VISA 仪器通信时使用,支持 SCPI 命令收发、波形捕获、截图和持续监控。

Installs
552
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/leokemp223/embed-ai-tool --skill visa-debug
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads visa-debug automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

VISA 仪器调试

适用场景

  • 需要识别和探测连接的 VISA 仪器(示波器、万用表、信号源等)。
  • 需要发送 SCPI 命令查询或控制仪器。
  • 需要从示波器捕获波形数据并保存为 CSV。
  • 需要捕获仪器屏幕截图。
  • 需要持续监控某个测量值的变化。

必要输入

  • VISA 资源字符串(如 TCPIP::192.168.1.100::INSTR、USB0::0x1AB1::0x04CE::DS1ZA1234::INSTR)。
  • SCPI 命令(查询/写入/监控模式需要)。

依赖

  • pyvisa(pip install pyvisa)
  • pyvisa-py(纯 Python 后端,pip install pyvisa-py)或 NI-VISA 驱动

执行步骤

  1. 先阅读 references/usage.md,确认操作参数。
  2. 探测环境:
    python scripts/visa_tool.py --detect
    
  3. 根据需求执行操作:
    # 查询仪器标识
    python scripts/visa_tool.py --resource "TCPIP::192.168.1.100::INSTR" --idn
    
    # 发送 SCPI 查询
    python scripts/visa_tool.py --resource "TCPIP::192.168.1.100::INSTR" --query ":MEAS:VOLT?"
    
    # 捕获波形
    python scripts/visa_tool.py --resource "TCPIP::192.168.1.100::INSTR" --waveform --output wave.csv
    

失败分流

  • connection-failure:VISA 资源未找到或无法打开连接。
  • timeout:仪器未响应。
  • command-error:SCPI 命令被仪器拒绝。
  • data-error:波形或截图数据传输失败。

输出约定

示例输出格式:

结果: ✅ Rigol Technologies,DS1054Z,DS1ZA1234,00.04.04.SP4
  资源: TCPIP::192.168.1.100::INSTR

交接关系

  • 从 build-keil / build-platformio 烧录固件后,用此 skill 验证硬件输出信号。
  • 与 serial-monitor 互补:serial-monitor 查看串口调试输出,visa-debug 进行仪器级测量验证。
  • 与 modbus-debug / can-debug 互补:协议调试配合仪器测量。

FAQ

What does the visa-debug skill do?

当需要调试 GPIB/USB/TCP/Serial VISA 仪器通信时使用,支持 SCPI 命令收发、波形捕获、截图和持续监控。

How do I install visa-debug?

Run npx skills add https://github.com/leokemp223/embed-ai-tool --skill visa-debug in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/visa-debug/ (personal) or .claude/skills/visa-debug/ (project).

Which AI agents can use visa-debug?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is visa-debug safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains visa-debug?

It is published by leokemp223 in leokemp223/embed-ai-tool. It has 552 recorded installs.

More from leokemp223/embed-ai-tool

View all →

serial-monitor

leokemp223/embed-ai-tool

当需要识别正确串口、调用自带脚本抓取日志,并分析嵌入式固件运行状态时使用。

585 installs

build-keil

leokemp223/embed-ai-tool

当需要通过 Keil MDK 命令行编译嵌入式工程,调用自带脚本解析工程文件、执行构建并定位固件产物时使用。

572 installs

build-platformio

leokemp223/embed-ai-tool

当需要通过 PlatformIO 命令行编译嵌入式工程,调用自带脚本解析环境配置、执行构建并定位固件产物时使用。

568 installs

workflow

leokemp223/embed-ai-tool

当需要串联多个 skill 完成编译+烧录+监控或编译+烧录+调试等流水线任务时使用。

flash-keil

leokemp223/embed-ai-tool

当需要通过 Keil MDK 内置调试器烧录固件到目标板时使用,利用工程中已配置的调试器和 Flash 算法执行下载。

566 installs

build-cmake

leokemp223/embed-ai-tool

当需要配置或构建基于 CMake 的嵌入式固件工程,调用自带脚本执行构建并定位固件产物时使用。

564 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.