Comunicazione basata su interfaccia
Nella comunicazione basata su interfacce, il workflow di base comprende passaggi comuni indipendentemente dal tipo di interfaccia. Innanzitutto, si crea un oggetto del tipo di interfaccia che si sta utilizzando per connettersi allo strumento. Successivamente, è possibile impostare le proprietà di connessione e comunicazione in base al workflow e alla configurazione dello strumento. Successivamente, scrivi i dati nello strumento e leggi i dati dallo strumento. Infine, quando hai finito di lavorare con il tuo strumento, disconnettiti a questo rimuovendo l'oggetto dall'area di lavoro.
Funzioni
aardvark | Connessione dell'adattatore Total Phase Aardvark (Da R2023a) |
ni845x | NI USB-845x connection (Da R2023a) |
device | I2C peripheral device connection (Da R2023a) |
spi | Create SPI object |
tcpclient | Create TCP/IP client connection with TCP/IP server |
tcpserver | Create TCP/IP server |
udpport | Connect to UDP socket |
serialport | Connection to serial port |
visadev | Create connection to device using VISA |
App
| TCP/IP Explorer | Connect to and communicate with TCP/IP server (Da R2021b) |
| UDP Explorer | Create UDP socket and communicate over networks using UDP (Da R2022a) |
| Serial Explorer | Communicate with devices connected to serial port (Da R2021b) |
| VISA Explorer | Connect to and communicate with instruments over VISA (Da R2022b) |
Argomenti
- 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.