このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
インターフェースベースの通信
インターフェースを使用して機器と通信する
インターフェースベースの通信では、基本的なワークフローはインターフェースの種類に関係なく共通のステップで構成されます。まず、計測器に接続するために使用するインターフェース タイプのオブジェクトを作成します。次に、ワークフローと機器の構成に基づいて、接続と通信のプロパティを設定できます。次に、計測器にデータを書き込み、計測器からデータを読み取ります。最後に、機器での作業が完了したら、ワークスペースからオブジェクトをクリアして機器から切断します。
関数
aardvark | Total Phase Aardvark Adapter connection (R2023a 以降) |
ni845x | NI USB-845x connection (R2023a 以降) |
device | I2C peripheral device connection (R2023a 以降) |
spi | Create SPI object |
tcpclient | Create TCP/IP client connection with TCP/IP server |
tcpserver | Create TCP/IP server (R2021a 以降) |
udpport | Connect to UDP socket |
serialport | Connection to serial port |
visadev | Create connection to device using VISA (R2021a 以降) |
アプリ
TCP/IP Explorer | Connect to and communicate with TCP/IP server (R2021b 以降) |
UDP Explorer | Create UDP socket and communicate over networks using UDP (R2022a 以降) |
Serial Explorer | Communicate with devices connected to serial port (R2021b 以降) |
VISA Explorer | Connect to and communicate with instruments over VISA (R2022b 以降) |
トピック
- Create Interface Object
Communicate with your instrument by creating an object that represents a connection to the instrument.
- Configure and Return Properties
Configure instrument object behavior by assigning values to properties.
- Write and Read Data
Write and read ASCII string data, binary data, or binblock data with the instrument.
- Use SCPI Commands
Use SCPI commands to control multiple instruments using similar functions.