Posted Mon, 22 Jan 2024 13:49:53 GMT by Malakhov, Denis
Hello
I am going to check DC Balance on CH1 for this i need config scope to :
Attach a 50 Ω terminator to the oscilloscope channel 1 input.
2. Push the front-panel Default Setup button.
3. Set the Horizontal Scale to 1 ms/division.
4. Double-tap the Channel 1 badge to open its Configuration menu.
5. Set the channel 1 termination to 50 Ω.
6. Set the Bandwidth Limit to 20 MHz
7. Tap outside the menu to close it.
8. Double-tap the Acquisition badge and set the Acquisition mode to Average.
9. Set the number of averages to 16.
10. Double-tap the Trigger badge and set the trigger Source to AC line.
11. Use the front-panel controls to set the Vertical Scale to 1 mV/div for the . channel under test.
12. Add a Mean amplitude measurement for channel 1 to the Results bar:
a. Tap the Measure button to open the Add Measurements menu.
b. In the Amplitude Measurements panel, double-tap the Mean measurement button to add the Mean measurement
badge to the Results bar.

How can i do that by communication protocol?
Every time i am receive "1" from the scope instead real value. Thank you
 
Posted Mon, 22 Jan 2024 16:24:45 GMT by Malakhov, Denis
That is part of code. Anybody know what is wrong here? why i am receive  "1" on output?
*RST
 FAC
  DATA:SOU CH1
 CH1:SCA 1E-3;TER 50;BAN 20
 MEASU:MEAS1:TYP MEAN
 MEASU:MEAS1:SOU CH1
ACQUIRE:STATE OFF
ACQ:MOD AVE
ACQuire:NUMAV 16
 ACQ:STOPAFTER SEQUENCE
 DESE 1
 *ESE 1
*SRE 0
 ACQ:STATE ON
MEASU:AUTO EXEC
*WAI
MEASU:MEAS1:CCRESU:ALLA:MEAN?
Thank you
Posted Tue, 23 Jan 2024 00:33:32 GMT by Teles, Afonso
Hi Denis,

There's a few things you could improve in your code:

1) There's no reason to do both *RST and FAC
2) DATA:SOU is for curve queries, it's irrelevant here
3) MEASU:AUTO EXEC is for jitter measurements, it shouldn't be used here
4) MEASU:MEAS1:CCRESU:ALLA:MEAN? is for getting the mean value of a measurement across multiple acquisitions, this is not what the procedure is asking for. Instead, you should use MEASU:MEAS1:VALUE?

You must be signed in to post in this forum.