Setup Query instrument block properly for TCPIP

5 次查看(过去 30 天)
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
------

回答(1 个)

Vishal Neelagiri
Vishal Neelagiri 2017-8-3
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

类别

Help CenterFile Exchange 中查找有关 Instrument Connection and Communication 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by