Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.
When I first turn on an MDO scope, don't trigger it, and, eg., query the RMS of channel 1 (`scope.query(':MEASU:MEAS1:TYP RMS;VAL?')`), I get `9.91e37` which is equivalent to a nan. This is expected behavior and, in my case, desirable.
Once I acquire anything, though, I can't seem to get back to this former state where a nan is returned rather than the last measurement. I've tried `*CLS`, `DCL`, and a few other things to no avail.
Basically, I want to know when I'm getting garbage data. I have what seems to me to be a kludge where I note the current acquisition number (`:ACQ:NUMAC?`) and keep checking to be sure that it has increased at least as much as `:ACQ:NUMAV?` before collecting any measurements. I figured that clearing the screen after eg. some change and then asking for measurements until the answer wasn't a nan would be more efficient, were it possible.
as for measurement value qualification, I'd check the event status register. I know this works after MEASU:IMM:VALUE? which I recommend for programmatic collection of results
related topics: viewtopic.php?t=136954#p276299, viewtopic.php?t=137950#p278587
Code: Select all
print(scope.query(':MEASU:MEAS1:TYP RMS;VAL?')) scope.write(":ACQ:STOPA SEQ") scope.write(":ACQ:STOPA RUNST") print(scope.query(':MEASU:MEAS1:TYP RMS;VAL?'))
Code: Select all
169.7535E-3 # last RMS 9.91E+37 # desired nan
Is what I have written above similarly robust? I can see the reasoning to go to actual single shot acquisition and use *OPC? though the method I described fits with my current code with less modification.the only way to be sure you are making the same measurement on separate acquisitions (or multiple measurements on a single acquisition) is with single shot acquisition (which will set the operation complete bit) and *OPC? synchronization.
Who is online
Users browsing this forum: No registered users and 2 guests