| Products > Test Equipment |
| Siglent scope: trial and error to find proper syntax for SCPI commands |
| (1/5) > >> |
| rfclown:
One of my frustrations with the Siglent SDS-1104X-E scopes we have at work is that I sometimes have to do trial and error to figure out the proper SCPI syntax. You cannot cut and paste from the manual. For instance, I was wanting to read the "Top" measurement of my waveform. Open manual, search for TOP, find the command, cut and paste, expect it to work... wrong as usual with Siglent. So the specific example command they had wasn't TOP, but RISE, so I'll use that example here. If I cut and paste from the manual I get: C2: PAVA? RISE Timeout expired before operation completed. (What my program tells me for VISA error -1073807339) So I play around with things, and finally find that if I remove the space between the colon and the PAVA, it works: C2:PAVA? RISE C2:PAVA RISE,3.352000E-07S As far as I know there is no resource on the scope to determine if your syntax is bad. There is no error message. It just doesn't work. "Is the feature not implemented?", is my immediate thought. Then sometimes after much trial and error I figure out how to make it work. Other times I give up. |
| tautech:
Please state scope FW version in use and programming manual version. |
| KungFuJosh:
--- 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. It just doesn't work. "Is the feature not implemented?", is my immediate thought. Then sometimes after much trial and error I figure out how to make it work. Other times I give up. --- End quote --- Do you know of another device that responds to bad syntax? I'm not any good at SCPI stuff, but I know for the different meters I've tried including other brands, I get no response at all if the command or syntax is wrong. |
| alm:
--- Quote from: KungFuJosh on October 16, 2023, 07:23:29 pm ---Do you know of another device that responds to bad syntax? I'm not any good at SCPI stuff, but I know for the different meters I've tried including other brands, I get no response at all if the command or syntax is wrong. --- End quote --- I don't remember specifically which instrument, but several Keithley and HP instruments I worked with would flash an error message on the screen and beep whenever they received a command they didn't understand, or received a command that's not valid in the current configuration. You can usually also query this error state via SCPI. Only very old instruments from the early eighties or older would behave differently. |
| rfclown:
--- Quote from: alm on October 16, 2023, 07:33:45 pm --- --- Quote from: KungFuJosh on October 16, 2023, 07:23:29 pm ---Do you know of another device that responds to bad syntax? I'm not any good at SCPI stuff, but I know for the different meters I've tried including other brands, I get no response at all if the command or syntax is wrong. --- End quote --- I don't remember specifically which instrument, but several Keithley and HP instruments I worked with would flash an error message on the screen and beep whenever they received a command they didn't understand, or received a command that's not valid in the current configuration. You can usually also query this error state via SCPI. Only very old instruments from the early eighties or older would behave differently. --- End quote --- This is also my experience. Most of the equipment on my bench at work and at home is HP/Agilent/Keysight. Most (except very old) have an error que that will show all errors. I also have keithley, Gigatronics, Anritsu, LeCroy. I've worked with all kinds of stuff over the years: Wavetek, IOtech, Boonton. I'm trying to think of anything that didn't give SOME kind of error notice (GPIB LEDs, screen message). Some instruments will also emit a beep with a bad command. But my main gripe here is that I cut and paste the command from the manual into my program, and it doesn't work. |
| Navigation |
| Message Index |
| Next page |