08-15-2019 03:33 AM
Hi
I was starting to automate the Keysight N9020A (MXA), and just looked at the Examples.
Can anyone tell me what is the type of commands used to control the Spectrum Analyzer? Is it SCPI command? Thanks very much.
Solved! Go to Solution.
08-15-2019 04:06 AM
08-15-2019 04:55 AM - edited 08-15-2019 04:57 AM
Hi GerdW
Thanks for your answer, it helped a lot.
I asked the question when I looked at the manuals. I was confused about why the commands used in the example cannot be found in the manuals. However, you did be able to find commands that are similar to those used in the example vi, like:
That is why I asked the question. "Is it SCPI command?"
I tried the command listed in the manual and found it functioned well as the command used in the example vi. Are two types of SCPI commands......?
08-15-2019 05:52 AM - edited 08-15-2019 05:53 AM
Hi Samuel,
with SCPI you can abbreviate commands. This should be explained in your manual, somewhere in the first chapter regarding SCPI commands…
In your image there is a list of several commands, using capitalized letters at the start of each command and non-capitalized letters at the end. Only the capitalized letters are needed, the others can be omitted.
So instead of writing "FETCH:CHPOWER" you can also write "FETC:CHP" to yield the same effect…
You also don't need to use the same capitalization, SCPI doesn't care about that.
08-15-2019 03:47 PM
Yes, SCPI.
":CONF:<blah>;" is short for ":INSTrument:CONFigure:<blah>;". There's a whole section in the manual on that command, which essential tells the instrument what type of measurement you are going to setup. See p42 - https://literature.cdn.keysight.com/litweb/pdf/N9062-90002.pdf?id=2915724
As GERDW said SCPI can be shortened and you must understand the context the commands are referring to. As long as the command string is unique you can drop leading identifier so ":INST:CONF" can be just ":CONF".
08-15-2019 09:51 PM
Hi GerdW
Thanks for your detailed explanation. It cleared my puzzle .
08-15-2019 09:53 PM
Hi Cstorey
Thanks for your further explanation and the link you prodvided. It is very good inforamtion for helping study.
08-15-2019 10:20 PM
Hi GerdW
Thanks very much. I used my collegue's account-amaglio- (unintentionally) to say that.