필터 지우기
필터 지우기

Setup Query instrument block properly for TCPIP

조회 수: 2 (최근 30일)
LucaDL
LucaDL 2017년 8월 1일
답변: Vishal Neelagiri 2017년 8월 3일
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