Comunicazione tramite interfaccia diretta in Simulink
Invio e ricezione di dati nei modelli Simulink®
Il modulo Instrument Control Toolbox™ fornisce blocchi per la comunicazione con gli strumenti e per l'utilizzo delle interfacce seriali, TCP/IP e UDP presenti nel modulo Simulink. Di seguito sono elencati i blocchi della libreria del blocco Instrument Control Toolbox e alcuni esempi che ne mostrano l'utilizzo.
Blocchi
| Serial Configuration | Configure parameters for serial port |
| Serial Receive | Receive binary data over serial port |
| Serial Send | Send binary data over serial port |
| TCP/IP Receive | Ricezione dei dati tramite rete TCP/IP da una macchina remota specificata. |
| TCP/IP Send | Send data over TCP/IP network to specified remote machine |
| UDP Receive | Receive data over UDP network from specified remote machine |
| UDP Send | Send data over UDP network to specified remote machine |
| VISA | Communicate with VISA resources (Da R2023b) |
Argomenti
- Open Instrument Control Toolbox Block Library
Access the Instrument Control Toolbox block library in two ways.
- Send and Receive Data over TCP/IP Network
Send data to an echo server using TCP/IP and read that data back into a model.
- Enable Blocking Mode in Receive and Send Blocks
Make your simulation wait while the block receives or sends data.
- Temporizzazione nei modelli di interfaccia hardware
Determinare la frequenza di esecuzione blocco e rapportarla al tempo reale.






