Interface with Power Supply via VISA TCP/IP Trouble
7 次查看(过去 30 天)
显示 更早的评论
Hello all,
I am trying to connect to a power supply via ethernet, and send SCPI commands to it. I have tried both TCP/IP and VISA methods, and I keep getting the issue of "Timeout expired before operation completed".
From the ethernet manual of the supply:
% RAW SOCKET INTERFACE
% The essential components of communicating via a raw socket interface are the
% socket number, IP address and command delimiter. The default values are: socket =
% 9221, IP address = 192.168.0.200 (when static IP is enabled), and delimiter = line
% feed <LF>. All of these items may be changed either via the Web browser (see IP
% CONFIGURATION, p. 2-16) or RS232C interfaces (see SCPI command section).
% For convenience and to comply with the proposed LXI™ standard, the VISA
% resource name is available on the home page of the power supply’s Web server.
My attempts:
powerSuppy = visa('ni', 'TCPIP0::<myIP>::<myPort>::SOCKET') %resource name from the web interface
fopen(powerSuppy);
ID = query(powerSuppy,'*IDN?')
fclose(powerSuppy)
The powerSupply visa is created, and I can open it, but sending a command is where the error happens. Anyone have any advice on how to accompolish sending and receiving the SCPI commands to this power supply? Any help is greatly appreciated.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Instrument Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!