Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

TDS 7054 query max and min measurement

Solved!
Go to solution

I seem to be having difficulty querying for the maximum and minimum measurements on my TDS 7054 o'scope. I have both meaurements on and if I query MEASU:MEAS1:TYP? it returns MAX and returns MIN for MEAS2. yet when i try to query the actual value MEASU:MEAS1:MAX? it returns 99.000+36 which of course cannot be true. The strangest part is that the code works for the DPO4104. Any Idea what I'm doing wrong? I've attached 2 sets of code, 1 is how I turn the measurements on on the scope, the other is trying to query for max and min.

Download All
0 Kudos
Message 1 of 5
(4,185 Views)
Solution
Accepted by topic author JakeKing

You should be using ":MEASU:MEAS%d:DAT?" to get your data (put the number in for the %d).  You are actually requesting the maximium max value the scope has recorded.  It can keep some statistics on measurements.  Here are the commands I use to get the data (again, replace %d with the measurement number):

:MEASU:MEAS%d:DAT?
:MEASU:MEAS%d:UNI?

 The first command requests the actual data of the measurement and the second requests the units of the measurement.


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 2 of 5
(4,180 Views)

thank you for your quick reply

 

DAT is not an acceptable command on these scopes, but if i use VALue instead it works like you said it should.

Thanks again.

0 Kudos
Message 3 of 5
(4,174 Views)

"MIN" is not acceptable for your scope, you must use "MINI"

 

0 Kudos
Message 4 of 5
(3,985 Views)
MIN works fine thank you though
0 Kudos
Message 5 of 5
(3,977 Views)