AnsweredAssumed Answered

PNAX is not receiving or processing all SCPI commands (sent by Matlab®)

Question asked by hyxamp on May 24, 2020
Latest reply on May 29, 2020 by daras

Hello,

we are using a Keysight PNAX N5247B in combination with SCPI commands and Matlab®. Unfortunately I noticed, that the PNAX is either not receiving or do not process all the commands sent by Matlab®. Now, im wondering what the problem is. Just a very short example. Im using that Matlab® code:

 

obj = visa('agilent','TCPIP0::192.168.1.1::5025::SOCKET');

 

fopen(obj);
for i = 1:4
    fprintf(obj,sprintf('DISPlay:WINDow%d:STATE ON', i));
end
fclose(obj);

 

With that short code, the PNAX supposed to open four new windows but in the most of the cases, one of them is missing. This problem exist at almost all commands in fast succession (not only with opening windows) and some of the commands wont be received or processed. I was already using *OPC? and *WAI inside the loop or was opening and closing the object after every command:

 

for i = 1:4
    fopen(obj);
    fprintf(obj,sprintf('DISPlay:WINDow%d:STATE ON', i));
    fclose(obj);
end

 

.. without any success. The only solution that works: adding a pause of one second after every SCPI command (pause(1)). But that is nothing I can deal with. It will make my program slow and inefficient.

 

Maybe somebody got another idea? Is there anything I have to configure, like the input buffer size of the PNAX?

 

Thank you very much.

Outcomes