Interface with Power Supply via VISA TCP/IP Trouble

5 Ansichten (letzte 30 Tage)
Ruger28
Ruger28 am 6 Jun. 2019
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.

Antworten (0)

Kategorien

Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by