Comunicación basada en interfaz
En la comunicación basada en interfaces, el flujo de trabajo básico comprende pasos comunes independientemente del tipo de interfaz. En primer lugar, debe crear un objeto del tipo de interfaz que esté utilizando para conectarse al instrumento. A continuación, puede configurar las propiedades de conexión y comunicación en función de su flujo de trabajo y la configuración del instrumento. A continuación, escriba y lea datos del instrumento. Finalmente, cuando haya terminado de trabajar con su instrumento, desconéctese de él eliminando el objeto del área de trabajo.
Funciones
aardvark | Conexión del adaptador Total Phase Aardvark (Desde R2023a) |
ni845x | NI USB-845x connection (Desde R2023a) |
device | I2C peripheral device connection (Desde 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 |
Apps
| TCP/IP Explorer | Connect to and communicate with TCP/IP server (Desde R2021b) |
| UDP Explorer | Create UDP socket and communicate over networks using UDP (Desde R2022a) |
| Serial Explorer | Communicate with devices connected to serial port (Desde R2021b) |
| VISA Explorer | Connect to and communicate with instruments over VISA (Desde R2022b) |
Temas
- 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.