Products > Test Equipment
Siglent scope: trial and error to find proper syntax for SCPI commands
rfclown:
--- Quote from: nctnico on October 17, 2023, 02:54:17 pm ---
--- Quote from: rfclown on October 17, 2023, 01:40:43 pm ---So this new firmware/software makes it so that you can have the extra space in the PAVA SCPI command?
--- End quote ---
No. SCPI commands never have spaces between ':' and the commands. The ':' IS the seperator. Please read the SCPI protocol specification so you can see an example command is formatted properly or not. This is a good start: https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments
Updating the firmware has nothing to do with your problem at hand. It would be rather insane if the SCPI commands are different between software versions; it would defeat the purpose of automating measurements.
--- End quote ---
Thank you for this information. Normally when I'm trying a new SCPI function, I'll cut and paste from the manual to eliminate any possibility of a typo error on my part. If that doesn't work, I don't normally assume that it is an error with the manual. I guess with Siglent, that isn't the case. Hence my gripe with Siglent.
h_ro:
--- Quote from: rfclown on October 16, 2023, 06:09:36 pm ---As far as I know there is no resource on the scope to determine if your syntax is bad. There is no error message.
--- End quote ---
Although undocumented in Siglent manuals, try using SYSTem:ERRor? to get very basic syntax or execution error messages. Seems to work on my SDS2000X+ scope and appears for several other vendor manuals.
It can tell you basic things such as whether it couldn't understand the command or if you submitted an invalid parameter.
--- Code: ---# Command executed without error
>>C1:PAVA? ALL
MAX,3.041670E+00,MIN,-3.333000E-02,PKPK,3.075000E+00,TOP,3.025000E+00,BASE,-1.667000E-02,AMPL,3.041670E+00,LEVELX,****,MEAN,1.672978E+00,CMEAN,****,STDEV,1.489559E+00,VSTD,****,RMS,2.240009E+00,CRMS,****,MEDIAN,3.000000E+00,CMEDIAN,****,OVSN,****,FPRE,****,OVSP,5.479452E-01,RPRE,5.479452E-01,PER,****,FREQ,****,TMAX,1.000047E-01,TMIN,9.995001E-02,PWID,****,NWID,****,DUTY,****,NDUTY,****,WID,****,NBWID,****,DELAY,9.999395E-02,TIMEL,9.999395E-02,RISE,3.382510E-06,FALL,****,RISE20T80,3.382510E-06,FALL80T20,****,CCJ,****,PAREA,1.681520E-04,NAREA,8.541200E-07,AREA,1.672978E-04,ABSAREA,1.690061E-04,CYCLES,0.000000E+00,REDGES,1.000000E+00,FEDGES,0.000000E+00,EDGES,1.000000E+00,PPULSES,0.000000E+00,NPULSES,0.000000E+00
>>SYST:ERR?
0,"No error"
# Undefined header/command
>>INVALID_COMMAND
>>SYST:ERR?
-113,"Undefined header;INVALID_COMMAND"
# Invalid command parameter
>>C1:PAVA? PARAM
>>SYST:ERR?
-224,"Illegal parameter value"
--- End code ---
Keysight has a full list of possible error messages: https://rfmw.em.keysight.com/bihelpfiles/n8900/webhelp/US/Content/__A_Home_Page/SCPI_Error_Messages.htm
2N3055:
--- Quote from: nctnico on October 17, 2023, 02:54:17 pm ---
--- Quote from: rfclown on October 17, 2023, 01:40:43 pm ---So this new firmware/software makes it so that you can have the extra space in the PAVA SCPI command?
--- End quote ---
No. SCPI commands never have spaces between ':' and the commands. The ':' IS the seperator. Please read the SCPI protocol specification so you can see an example command is formatted properly or not. This is a good start: https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments
Updating the firmware has nothing to do with your problem at hand. It would be rather insane if the SCPI commands are different between software versions; it would defeat the purpose of automating measurements.
--- End quote ---
What do you mean "Updating the firmware has nothing to do with your problem at hand."??
Why do you think firmware update exist? If there is error you simply ignore it?
Nobody will change syntax just like that but there can be bug fixes and new commands.
--- Quote from: rfclown on October 17, 2023, 03:25:59 pm ---
--- Quote from: nctnico on October 17, 2023, 02:54:17 pm ---
--- Quote from: rfclown on October 17, 2023, 01:40:43 pm ---So this new firmware/software makes it so that you can have the extra space in the PAVA SCPI command?
--- End quote ---
No. SCPI commands never have spaces between ':' and the commands. The ':' IS the seperator. Please read the SCPI protocol specification so you can see an example command is formatted properly or not. This is a good start: https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments
Updating the firmware has nothing to do with your problem at hand. It would be rather insane if the SCPI commands are different between software versions; it would defeat the purpose of automating measurements.
--- End quote ---
Thank you for this information. Normally when I'm trying a new SCPI function, I'll cut and paste from the manual to eliminate any possibility of a typo error on my part. If that doesn't work, I don't normally assume that it is an error with the manual. I guess with Siglent, that isn't the case. Hence my gripe with Siglent.
--- End quote ---
Load latest firmware and download newest manual.
I don't see space in manual.
Pasted:
C2:PAVA? RISE
C2:PAVA RISE,3.6E-9S
C1:PAVA? ALL
C1:PAVA
Those are all occurrences of ":PAVA" string in Prog Guide.
Again, manual you are referring to is from 2014, as URL you posted clearly states. Manuals can have typos and new features are added all the time, so manuals are corrected and updated. Please download current one as per Tautech link.
Performa01:
--- Quote from: 2N3055 on October 18, 2023, 06:52:36 am ---Again, manual you are referring to is from 2014, as URL you posted clearly states. Manuals can have typos and new features are added all the time, so manuals are corrected and updated. Please download current one as per Tautech link.
--- End quote ---
This happens only with Siglent. All other manufacturers are perfect in this regard.
tautech:
--- Quote from: Performa01 on October 18, 2023, 08:35:38 am ---
--- Quote from: 2N3055 on October 18, 2023, 06:52:36 am ---Again, manual you are referring to is from 2014, as URL you posted clearly states. Manuals can have typos and new features are added all the time, so manuals are corrected and updated. Please download current one as per Tautech link.
--- End quote ---
This happens only with Siglent. All other manufacturers are perfect in this regard.
--- End quote ---
Additional bold added.
The clue to this is the latest programming manual version: E02D
Some Siglent websites list the manual release date in the URL, some don't so the version # is always the most reliable indication of the latest.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version