Hi I am very new to SCPI. I am using KeySight's Expert Connection and using command in it.
the instrument is 53131A.
I am at a loss as i am not very familiar with SCPI. I have SCPI documents as as operating manual, programming guide. this programming guide is quite confusing to me.
Do you have any tutorials or examples as to how to use SCPI to communicate with it step by step?
I have tried with help from technical help but only bit by bit.
With PC, 53131A, GPIB on and connected and Expert Connection running.
It is connected. and ready for programming..
I keyed in like
:FUNC 'FRE1' -> send command button pressed -> Ok
:READ:FREQ? -> send & read button pressed -> OK
:FUNC 'FREQ2' -> send command button pressed -> OK
:READ:FREQ? -> send & read button pressed -> Error --- "CH2" is not enabled as indicated LCD in the instrument
Why does it not work? What command is used to select CH2?
Clement
the instrument is 53131A.
I am at a loss as i am not very familiar with SCPI. I have SCPI documents as as operating manual, programming guide. this programming guide is quite confusing to me.
Do you have any tutorials or examples as to how to use SCPI to communicate with it step by step?
I have tried with help from technical help but only bit by bit.
With PC, 53131A, GPIB on and connected and Expert Connection running.
It is connected. and ready for programming..
I keyed in like
:FUNC 'FRE1' -> send command button pressed -> Ok
:READ:FREQ? -> send & read button pressed -> OK
:FUNC 'FREQ2' -> send command button pressed -> OK
:READ:FREQ? -> send & read button pressed -> Error --- "CH2" is not enabled as indicated LCD in the instrument
Why does it not work? What command is used to select CH2?
Clement
SCPI commands can be confusing, but there are a couple of commands you can start with and then build from there.
The best command to use to make a measurement after you have communication with the instrument (e.g. through Keysight Connection Expert) is the MEASure? command:
MEAS:FREQ? (@2)
This command configures the counter (sets individual counter parameters to predefined values), initiates the counter (prepares it to receive a trigger), and returns the measurement when the trigger (internal) occurs. (@2) selects channel 2. Send this command by pressing the Interactive IO 'Send & Read' key.
To build from there, the next command that should be used is the CONFigure command:
CONF:FREQ (@2)
This command configures the counter in the same manner as the MEASure command, but does not automatically initiate the counter to start the measurement. CONFigure enables you to use 'low-level' commands to change individual parameters from their defaults set by CONFigure. For example, CONFigure sets the input impedance to 1 Mohm. If you want to change the impedance to 50 ohms you can send:
CONF:FREQ (@2)
INP2:IMP 50
To initiate the counter following the CONF command you can use READ? or INIT followed by FETCh?. READ? is the same as sending INIT and FETC? back to back. The commands you send could then be:
CONF:FREQ (@2)
INP2:IMP 50
READ?
Using Interactive IO you can send the commands in a single string as:
CONF:FREQ (@2);:INP2:IMP 50;:READ?
And then pressing Send & Read. Note that multiple commands from different subsystems (another SCPI term) must be separated by a semicolon (;) and a colon (:).
Again, start with MEASure? and CONFigure and then use the low-level commands (e.g.INP2:IMP) to change specific parameters as needed.
Hope this gets you started.