Schnittstellenbasierte Kommunikation
Bei schnittstellenbasierter Kommunikation umfasst der grundlegende Workflow unabhängig vom Schnittstellentyp gemeinsame Schritte. Zuerst erstellen Sie ein Objekt des Schnittstellentyps, den Sie für die Verbindung zum Instrument verwenden. Anschließend können Sie die Verbindungs- und Kommunikationseigenschaften entsprechend Ihrem Workflow und Ihrer Gerätekonfiguration festlegen. Als nächstes werden Daten in das Instrument geschrieben und von diesem gelesen. Wenn Sie die Arbeit mit Ihrem Instrument beendet haben, trennen Sie die Verbindung, indem Sie das Objekt aus dem Workspace entfernen.
Funktionen
aardvark | Total Phase Aardvark Adapterverbindung (Seit R2023a) |
ni845x | NI USB-845x connection (Seit R2023a) |
device | I2C peripheral device connection (Seit 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 (Seit R2021b) |
| UDP Explorer | Create UDP socket and communicate over networks using UDP (Seit R2022a) |
| Serial Explorer | Communicate with devices connected to serial port (Seit R2021b) |
| VISA Explorer | Connect to and communicate with instruments over VISA (Seit R2022b) |
Themen
- 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.