Show HN:Instruments にするための Pypi ライブラリ「Instrumation」のご紹介
## Japanese Translation:
Instrumation は、Python ベースのハードウェア抽象化層(HAL)であり、PyVISA の boilerplate コードを抽象化することで RF テストステーションの自動化を簡素化し、Keysight、Rigol、Tektronix、Siglent、R&S、Anritsu など多様なメーカーのインスルメントで動作する移植可能なソフトウェアを提供することを目的としています。その最も重要な特徴は、「すべてのものに統一された API(One API for everything)」を提供することであり、生の SCPI コマンドをより安全な型付きの Python メソッドに置き換え、USB または LAN 経由で接続されたデバイスのスマートな自動検出をサポートし、手動設定なしに正しいドライバーをロードします。
ユニークなのは、「デジタルツインモード」と呼ばれるオフラインでの開発およびデバッグを支援する機能であり、リアルな高斯雑音(Gaussian noise)を出力するシミュレーションされたインスルメントを用いることで、物理機器なしでロジックのテストが可能です。実際のハードウェアによる検証は、Tektronix AFG3022C + Keysight DSOX2002A のループバック構成、Keysight N9030A を用いたバイナリ・トレース転送、N5183B を用いたパルス変調、および N5232A を用いた S パラメータ測定などのセットアップで実証されています。
PyVISA、PySerial、SCPI スタンダードに基づき構築された Instrumation は、Windows、Linux、macOS、Android(Termux 経由)で動作します。内部に搭載されている DataBroadcaster(UDP ベース、ゼロ設定)による遅延ゼロのライブデータストリーミングをダッシュボードへ可能にし、HTML、Excel、PDF などの構造化レポートを生成するためのツールを提供することでワークフローを効率化します。インストールは `pip install .` または GitHub からクローンを行うことで行い、Windows 上では物理アクセスのために NI-VISA または Keysight IO Libraries Suite の設置が必要です。高度なテストステーションは `station.toml` ファイル(Station Manager)を用いて管理でき、パッケージには診断および迅速測定用の CLI(`instrumation scan`)も含まれています。エコシステムはさらに、自動化されたパス/フェイル評価を行う関連プロジェクト `instrumation-report` によって拡張されています。
## Text to translate:
Instrumation is a Python-based Hardware Abstraction Layer designed to simplify Radio Frequency (RF) test station automation by abstracting PyVISA boilerplate and enabling portable software that works across diverse instrument brands including Keysight, Rigol, Tektronix, Siglent, R&S, and Anritsu. Its most critical feature is providing a unified API ("One API for everything") that replaces raw SCPI commands with safer, typed Python methods and supports smart auto-detection of connected devices via USB or LAN, loading the correct driver without manual configuration.
Uniquely, it supports offline development and debugging via "Digital Twin mode" (simulated instruments emitting realistic Gaussian noise), allowing developers to test logic without physical equipment. Real hardware validation has been demonstrated using setups like a Tektronix AFG3022C + Keysight DSOX2002A loopback, Keysight N9030A for binary trace transfers, N5183B for pulse modulation, and N5232A for S-parameter measurements.
Built on PyVISA, PySerial, and the SCPI standard, Instrumation runs on Windows, Linux, macOS, and Android (via Termux). It streamlines workflows by enabling zero-lag live data streaming to dashboards via its built-in DataBroadcaster (UDP-based, zero-config) and offering tools to generate structured reports in HTML, Excel, or PDF. Installation is done via `pip install .` or cloning from GitHub; on Windows, NI-VISA or Keysight IO Libraries Suite are required for physical access. Advanced test stations can be managed using a `station.toml` file (Station Manager), and the package includes a CLI (`instrumation scan`) for diagnostics and quick measurements. The ecosystem is further extended by the related `instrumation-report` project for automated pass/fail evaluation.