Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Tek MSO4104 - Programatically display Automatic Measurements

Solved!
Go to solution

I am trying to program my Tek MSO4104 to programatically display Automatic Measurements, such as Peak to Peak amplitude, etc. I can do it on the front panel of the scope, and I can read back the values I want via VISA, however, I can't seem to find the command to add these measurements to the screen on the scope programatically.

 

Let me rephrase that...I think the only way that might work is to simulate front panel button presses and knob turns using the VISA commands: "FPanel: Press" and "FPanel:Turn"...but that is way cumbersome...it seems like there HAS to be a single command to add a Pk2Pk automatic measurement to the display!?

0 Kudos
Message 1 of 15
(4,600 Views)

It would probably be quicker to get an answer if you contacted Tektronix.

 

 

0 Kudos
Message 2 of 15
(4,593 Views)

Just use the Read Waveform Measurement function.

0 Kudos
Message 3 of 15
(4,579 Views)

He can read the waveform and calculate the measurements himself, but the instrument can apparently do this automatically and spit out the results.

 

From reading the programmer's manual, the MATH functions might be what he is after.

 

 

0 Kudos
Message 4 of 15
(4,575 Views)

Or just use the function I mentioned. I'm not sure if it adds anything to the screen of the scope but I don't think that is all that important.

0 Kudos
Message 5 of 15
(4,570 Views)

If it is like the TDS scope, I think what you are looking for is the MEASUrement subsystem.  For instance

:MEASU:MEAS%d:STATE ON;

 will turn the measurement on.  I'm sending this string into a format string, so %d should be replaced with the measurement number.  The TDS scopes had 4 measurements available.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 15
(4,568 Views)

@Dennis_Knutson wrote:

Or just use the function I mentioned. I'm not sure if it adds anything to the screen of the scope but I don't think that is all that important.



It's important to him that he wants more than just the raw waveform data.

0 Kudos
Message 7 of 15
(4,565 Views)

Took me awhile to find the programmer's manual.  If you get the programmer's manual, look at the section starting on the very bottom of page 2-30 (Measurement Command Group).  The commands you are looking for are in there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 15
(4,559 Views)

I was able to dig up some of my code for the TDS scope.  Looks like the commands are the same.  Here's an example for setting up a Pk-to-Pk measurement on channel 1.

:MEASU:MEAS1:TYP PK2PK;SOURCE1 CH1;:MEASU:MEAS1:STATE ON;

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 15
(4,543 Views)

@nyc_(is_out_of_here) wrote:

@Dennis_Knutson wrote:

Or just use the function I mentioned. I'm not sure if it adds anything to the screen of the scope but I don't think that is all that important


It's important to him that he wants more than just the raw waveform data.


That's obvious. What do you think the measurement function actually does? It certainly does not return raw waveform data. It returns exactly what the op asked for - i.e. just the vpp measurement.

0 Kudos
Message 10 of 15
(4,537 Views)