explore_scpi
Explore an instrument's SCPI command set by sending commands and queries. Discover supported functions, verify syntax, and confirm communication with unknown or insufficient built-in commands.
Instructions
探索性发送 SCPI 命令,用于学习和发现仪器支持的命令。
使用场景:
仪器型号未知,需要探索支持的命令
内置命令不够用,需要发现新功能
命令语法不确定,需要验证
工作流程:
先用 explore_scpi(command="*IDN?", query=True) 确认通信
尝试发送各种命令探索功能
成功的命令用 save_learned_command() 保存
Args: alias: 已连接仪器的别名,如 "mxa"/"cmw" command: SCPI 命令字符串,如 "FREQ:CENT?" 或 "*OPT?" query: 是否为查询命令(命令以 ? 结尾时自动识别)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | default | |
| command | No | ||
| query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |