Matlab: Telnet to Keysight VXT not succesful.

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일

1 개 추천

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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

릴리스

R2023a

질문:

2024년 6월 25일

답변:

2024년 8월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by