tektronix/tm_devices

[BUG]: APIs with the Query function missing for the following list of PI commands.

Opened this issue · 1 comments

Description of the bug

APIs with the Query function missing for the following list of PI commands.

Models affected: MSO 2|4|5|6 series Oscilloscopes.

API PI command
scope.commands.search.search[x].trigger.a.bus.arinc429a.label.value.query() SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:LABel:VALue?
scope.commands.search.search[x].trigger.a.bus.usb.data.qualifier.query() SEARCH:SEARCH:TRIGger:A:BUS:USB:DATa:QUALifier?
scope.commands.search.search[x].trigger.a.window.crossing.query() SEARCH:SEARCH:TRIGger:A:WINdow:CROSSIng?
scope.commands.measurement.meas[x].smoothingfilter.query() MEASUrement:MEAS:SMOOTHINGFILTER?
scope.commands.plot.plot[1].label.font.size.query() PLOT:PLOT:LABel:FONT:SIZE?
scope.commands.bus.b[1].mil1553b.threshold.query() BUS:B:MIL1553B:THRESHold?
scope.commands.bus.b[1].mdio.clock.threshold.query() BUS:B:MDIO:CLOCk:THReshold?
scope.commands.ref.ref[x].deskew.query() REF:REF:DESKew?
scope.commands.ref.ref[x].label.color.query() REF:REF:LABel:COLor?
scope.commands.ref.ref[x].label.font.bold.query() REF:REF:LABel:FONT:BOLD?
scope.commands.ref.ref[x].label.font.italic.query() REF:REF:LABel:FONT:ITALic?
scope.commands.ref.ref[x].label.font.size.query() REF:REF:LABel:FONT:SIZE?
scope.commands.ref.ref[x].label.font.type.query() REF:REF:LABel:FONT:TYPE?
scope.commands.ref.ref[x].label.font.underline.query() REF:REF:LABel:FONT:UNDERline?
scope.commands.ref.ref[x].source.query() REF:REF:SOUrce?
scope.commands.ch[x].label.color.query() CH:LABel:COLor?
scope.commands.ch[x].label.font.bold.query() CH:LABel:FONT:BOLD?
scope.commands.ch[x].label.font.italic.query() CH:LABel:FONT:ITALic?
scope.commands.ch[x].label.font.size.query() CH:LABel:FONT:SIZE?
scope.commands.ch[x].label.font.type.query() CH:LABel:FONT:TYPE?
scope.commands.ch[x].label.font.underline.query() CH:LABel:FONT:UNDERline?
scope.commands.ch[x].ditherrange.query() CH:DITHERrange?
scope.commands.ch[x].scale.query() CH:SCAle?
scope.commands.ch[x].position.query() CH:POSition?
scope.commands.saveonevent.filedest.query() SAVEONEVent:FILEDest?
scope.commands.trigger.a.bus.b[x].sent.slow.identifier.value.query() TRIGger:A:BUS:B:SENT:SLOW:IDentifier:VALue?
scope.commands.measurement.edge[x].query() MEASUrement:EDGE?
scope.commands.measurement.meas[x].edge[x].query() MEASUrement:MEAS:EDGE?
scope.commands.measurement.meas[x].gating.logicsource.query() MEASUrement:MEAS:GATing:LOGICSource?
scope.commands.measurement.meas[x].gating.searchsource.query() MEASUrement:MEAS:GATing:SEARCHSource?
scope.commands.measurement.meas[x].label.query() MEASUrement:MEAS:LABel?
scope.commands.measurement.meas[x].perfreq.edge.query() MEASUrement:MEAS:PERFREQ:EDGE?
scope.commands.measurement.meas[x].transition.query() MEASUrement:MEAS:TRANSition?
scope.commands.measurement.ref[x].reflevels.basetop.query() MEASUrement:REF:REFLevels:BASETop?
scope.commands.math.math[x].function.query() MATH:MATH:FUNCtion?
scope.commands.math.math[x].label.color.query() MATH:MATH:LABel:COLor?
scope.commands.math.math[x].label.font.bold.query() MATH:MATH:LABel:FONT:BOLD?
scope.commands.math.math[x].label.font.italic.query() MATH:MATH:LABel:FONT:ITALic?
scope.commands.math.math[x].label.font.size.query() MATH:MATH:LABel:FONT:SIZE?
scope.commands.math.math[x].label.font.type.query() MATH:MATH:LABel:FONT:TYPE?
scope.commands.math.math[x].label.font.underline.query() MATH:MATH:LABel:FONT:UNDERline?
scope.commands.math.math[x].source.query() MATH:MATH:SOUrce1?
scope.commands.bus.b[x].parallel.bitsource[x].threshold.query() BUS:B:PARallel:BITSOUrce:THReshold?
scope.commands.display.plotview[x].xaxis.scale.query() DISplay:PLOTVIEW:XAXIS:SCALE?
scope.commands.display.plotview[x].yaxis.scale.query() DISplay:PLOTVIEW:YAXIS:SCALE?
scope.commands.display.global_.b[x].state.query() DISplay:GLObal:B:STATE?
scope.commands.display.global_.ch[x].state.query() DISplay:GLObal:CH:STATE?
scope.commands.display.global_.math[x].state.query() DISplay:GLObal:MATH:STATE?
scope.commands.display.global_.ref[x].state.query() DISplay:GLObal:REF:STATE?
scope.commands.display.mathfftview.math.math[x].state.query() DISplay:MATHFFTView1:MATH:MATH:STATE?
scope.commands.display.select.reference.query() DISplay:SELect:REFerence?
scope.commands.display.select.source.query() DISplay:SELect:SOUrce?
scope.commands.display.select.view.query() DISplay:SELect:VIEW?
scope.commands.display.select.waveview.source.query() DISplay:SELect:WAVEView1:SOUrce?
scope.commands.display.mathfftview.zoom.xaxis.to.query() DISplay:MATHFFTView1:ZOOM:XAXIS:TO?
scope.commands.math.math[x].interpolation.query() MATH:MATH:INTERpolation?
scope.commands.search.search[x].trigger.a.state.query() SEARCH:SEARCH:TRIGger:A:STATE?
scope.commands.search.selected.query() SEARCH:SELected?
scope.commands.search.search[x].trigger.a.bus.can.data.value.query() SEARCH:SEARCH:TRIGger:A:BUS:CAN:DATa:VALue?

Models affected: DPO/MSO/DSA 70K SX/DX/C series Oscilloscopes.

API PI Command
scope.commands.zoom.mode.query() ZOOm:MODe?
scope.commands.mch[x].maxamplitude.query() MCH:MAXAMPLitude?
scope.commands.mch[x].minamplitude.query() MCH:MINAMPLitude?
scope.commands.custom.gate.source.query() CUSTOM:GATE:SOUrce?
scope.commands.custom.gate.start.query() CUSTOM:GATE:START?
scope.commands.custom.gate.width.query() CUSTOM:GATE:WIDth?
scope.commands.custom.select.gate.query() CUSTOM:SELECT:GATE?
scope.commands.errordetector.signaltype.query() ERRORDetector:SIGnaltype?

Models affected: TekScopePC Oscilloscope.

API PI command
scope.commands.vertical.deskew.to.custompropagation.query() VERTical:DESKew:TO:CUSTOMPROPAgation?
scope.commands.ch[1].ditherrange.query() CH:DITHERrange?
scope.commands.ch[1].probefunc.extunits.state.query() CH:PROBEFunc:EXTUnits:STATE?
scope.commands.ref.ref[1].deskew.query() REF:REF:DESKew?
scope.commands.ref.ref[1].label.color.query() REF:REF:LABel:COLor?
scope.commands.ref.ref[1].label.font.bold.query() REF:REF:LABel:FONT:BOLD?
scope.commands.ref.ref[1].label.font.italic.query() REF:REF:LABel:FONT:ITALic?
scope.commands.ref.ref[1].label.font.size.query() REF:REF:LABel:FONT:SIZE?
scope.commands.ref.ref[1].label.font.type.query() REF:REF:LABel:FONT:TYPE?
scope.commands.ref.ref[1].label.font.underline.query() REF:REF:LABel:FONT:UNDERline?
scope.commands.s[1].ch[1].label.color.query() S_CH:LABel:COLor?
scope.commands.s[1].ch[1].label.font.bold.query() S_CH:LABel:FONT:BOLD?
scope.commands.s[1].ch[1].label.font.italic.query() S_CH:LABel:FONT:ITALic?
scope.commands.s[1].ch[1].label.font.size.query() S_CH:LABel:FONT:SIZE?
scope.commands.s[1].ch[1].label.font.type.query() S_CH:LABel:FONT:TYPE?
scope.commands.s[1].ch[1].label.font.underline.query() S_CH:LABel:FONT:UNDERline?
scope.commands.s[1].ch[1].position.query() S_CH:POSition?
scope.commands.s[1].ch[1].scale.query() S_CH:SCAle?
scope.commands.measurement.edge[1].query() MEASUrement:EDGE?
scope.commands.measurement.meas[1].clockrecovery.constclockmode.query() MEASUrement:MEAS:CLOCKRecovery:CONSTCLOCKMODe?
scope.commands.measurement.meas[1].clockrecovery.standard.query() MEASUrement:MEAS:CLOCKRecovery:STAndard?
scope.commands.measurement.meas[1].label.query() MEASUrement:MEAS:LABel?
scope.commands.measurement.meas[1].perfreq.edge.query() MEASUrement:MEAS:PERFREQ:EDGE?
scope.commands.measurement.meas[1].transition.query() MEASUrement:MEAS:TRANSition?
scope.commands.measurement.meas[1].edge[1].query() MEASUrement:MEAS:EDGE?
scope.commands.measurement.meas[1].gating.logicsource.query() MEASUrement:MEAS:gating:LOGICSource?
scope.commands.measurement.meas[1].gating.searchsource.query() MEASUrement:MEAS:gating:searchsource?
scope.commands.measurement.meas[1].smoothingfilter.query() MEASUrement:MEAS:SMOOTHINGFILTER?
scope.commands.search.search[1].trigger.a.bus.usb.data.qualifier.query() SEARCH:SEARCH:TRIGger:A:BUS:ARINC429A:LABel:VALue?
scope.commands.search.search[1].trigger.a.bus.usb.data.qualifier.query() SEARCH:SEARCH:TRIGger:A:BUS:USB:DATa:QUALifier?
scope.commands.search.search[1].trigger.a.runt.source.query() SEARCH:SEARCH:TRIGger:A:RUNT:SOUrce?
scope.commands.search.search[1].trigger.a.state.query() SEARCH:SEARCH:TRIGger:A:STATE?
scope.commands.math.math[1].avg.mode.query() MATH:MATH:AVG:MODE?
scope.commands.math.math[1].avg.weight.query() MATH:MATH:AVG:WEIGht?
scope.commands.math.math[1].filter.response.query() MATH:MATH:FILTer:RESPonse?
scope.commands.math.math[1].interpolation.query() MATH:MATH:INTERpolation?
scope.commands.math.math[1].label.color.query() MATH:MATH:LABel:COLor?
scope.commands.math.math[1].label.font.bold.query() MATH:MATH:LABel:FONT:BOLD?
scope.commands.math.math[1].label.font.italic.query() MATH:MATH:LABel:FONT:ITALic?
scope.commands.math.math[1].label.font.size.query() MATH:MATH:LABel:FONT:SIZE?
scope.commands.math.math[1].label.font.type.query() MATH:MATH:LABel:FONT:TYPE?
scope.commands.math.math[1].label.font.underline.query() MATH:MATH:LABel:FONT:UNDERline?
scope.commands.math.math[1].source1.query() MATH:MATH:SOUrce?
scope.commands.math.math[1].type.query() MATH:MATH:TYPe?
scope.commands.math.math[1].vunit.query() MATH:MATH:VUNIT?
scope.commands.verbose.query() VERBose?

Steps To Reproduce

  1. Create a driver object named "scope" for any of the affected models.

  2. Use the "scope" driver object to query the above-mentioned APIs.
    Examples:

                    scope.commands.search.search[1].trigger.a.state.query() 
    
                       scope.commands.math.math[1].function.query()
    
  3. Error message: The object has no attribute 'query'.

image
image

Environment Information

Operating System:

  • Windows 10, 64-bit

Software Version:

  • tm-devices : 1.1.0

Additional Information

Alternative way to make the query is as follows:

Examples:

               scope.query("ZOOm:MODe?")

               scope.query("DISplay:GLObal:B<x>:STATE?") 

The stroked-out APIs for MSO 2,4|5|6 models are available in the latest package upon merging #142.