Comunicación basada en interfaz
Con la comunicación basada en interfaz, el flujo de trabajo básico comprende pasos comunes independientemente del tipo de interfaz. Primero, crea un objeto del tipo de interfaz que estás usando para conectarte al instrumento. Luego, puede configurar las propiedades de conexión y comunicación según su flujo de trabajo y la configuración del instrumento. A continuación, escriba datos en el instrumento y lea datos del mismo. Finalmente, cuando haya terminado de trabajar con su instrumento, desconéctese de él borrando el objeto del espacio de trabajo.
Funciones
aardvark | Total Phase Aardvark Adapter connection (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 (Desde R2021a) |
udpport | Connect to UDP socket |
serialport | Connection to serial port |
visadev | Create connection to device using VISA (Desde R2021a) |
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.