Setup Query instrument block properly for TCPIP
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm trying to readout the current and voltage of a SM3300 series power supply from Delta Elektronika. It's connected through TCPIP (Ethernet cable) to my mac. I've already got the queries working on my terminal so I'm sure there is a connection and I can communicate with the device. Now i'm trying to make it work in Simulink in order to log the data at a higher frequency. However, when running the simulation. It wait for the whole simulation time (5s) and then returns an error like: "response from device is empty"
I suppose it has something to do with firewall settings not letting simulink establish outgoing connections. Unfortunately I do not know how to fix this. Can anyone help me out?
Thank you!
For the Query instrument block I use the following settings:
-----
Block sample time: 1
Time out: 10
Buffer size: 512
Interface: TCPIP
Remote host: '169.254.0.2' (Same as what works from the terminal)
Port: 8462
Instrument initialisation: "None"
Query Command 'meas:curr?'
Instrument Response:
Data Format: Binary
Precision: 16 bit integer
Byte Order: Little Endian
Binary values to read: 16
Response output after initial response:
Repeat query for new data
------
0 commentaires
Réponses (1)
Vishal Neelagiri
le 3 Août 2017
You might want to refer to the following documentation link which describes steps to troubleshoot issues with Instrument Control Toolbox with TCP/IP:
https://www.mathworks.com/help/instrument/troubleshooting-tcpip-interface.html
0 commentaires
Voir également
Catégories
En savoir plus sur Instrument Connection and Communication dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!