08-06-2012 07:22 PM - edited 08-06-2012 07:25 PM
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!?
Solved! Go to Solution.
08-06-2012 08:28 PM
It would probably be quicker to get an answer if you contacted Tektronix.
08-07-2012 09:24 AM
Just use the Read Waveform Measurement function.
08-07-2012 09:45 AM
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.
08-07-2012 10:08 AM
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.
08-07-2012 10:14 AM
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.
08-07-2012 10:17 AM - edited 08-07-2012 10:18 AM
@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.
08-07-2012 10:30 AM
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.
08-07-2012 11:10 AM
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;
08-07-2012 11:40 AM
@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.