Matlab: Telnet to Keysight VXT not succesful.

9 ビュー (過去 30 日間)
Siva Meduri
Siva Meduri 2024 年 6 月 25 日
回答済み: Andrei 2024 年 8 月 30 日
Not able to Connect to Keysight VXT using telnet and run SCPI command . Following is the code used.
t = tcpip('10.232.133.147', 5023);
set(t, 'InputBufferSize', 30000);
fopen(t);
command=':SOUR:POW:AMPL -63 DBM\n'
fprintf(t, command);
fclose(t);

回答 (2 件)

Andrei
Andrei 2024 年 8 月 30 日
Don't include the \n in the commmand. fprintf will append the default terminator (LF) for you when writing the command.
...
command = ':SOUR:POW:AMPL -63 DBM';
fprintf(t, command);
...

Suraj
Suraj 2024 年 7 月 8 日
Hi Siva,
It looks like you're running into an issue when connecting to your hardware using "tcpip" function.
I found the following article by the MathWorks support team which may be helpful.
Do try the steps mentioned in the above article.

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by