Posted Wed, 04 Sep 2024 13:47:41 GMT by Cook, John
I'm having troubles getting a useful response from a measurement command.  The result is zero all the time, for every type of measurement.  Here's the setup:

Inject a 10kHz 4Vp-p sine wave from a signal generator into a TEK MSO5204B on channel 4.  Use SCPI commands to turn on CH4 and put the scope in "RUN" mode.

Send these SCPI commands:
MEASUrement:MEAS1:SOUrce CH4
MEASUrement:MEAS1:TYPE FREQUENCY;ACQUIRE:STATE ON
MEASUrement:MEAS1:VALue?

The scope's measurement setup page will show Frequency as measurement number 1 on CH4
The query returns the following result:

:MEASUREMENT:MEAS1:VALUE 0.00000000000 FREQ

I can parse out the value easily enough but the value should be 10 kHz, not zero.

Any suggestions?
Thanks.
Posted Thu, 05 Sep 2024 15:27:37 GMT by Cook, John
After a lot of reading of the manual the solution is to turn on the measurement state, like this:

:MEASUrement:MEASx:SOUrce CHchannel;:MEASUREMENT:MEASx:STATE ON

Notice you need the semi-colon and leading colon of the second command that turns on the state of measurement, so the measurement actually happens.
Posted Fri, 06 Sep 2024 08:37:31 GMT by Hilton, Johnny
<p>&lt;p&gt;You can make Measurement Command Syntax&lt;/p&gt; &lt;p&gt;Confirm that the SCPI command syntax is correct. You are using:&lt;/p&gt; &lt;p&gt;MEASUrement:MEAS1:SOUrce CH4&lt;br&gt; MEASUrement:MEAS1:TYPE FREQUENCY&lt;br&gt; MEASUrement:MEAS1:VALue?&lt;/p&gt; &lt;p&gt;Ensure that ACQUIREON is not affecting the results negatively. This command is usually used to start acquisition but might not be necessary here. After acquisition starts, the scope should run automatically unless it's paused hills of steel

You must be signed in to post in this forum.