542 lines
30 KiB
Python
542 lines
30 KiB
Python
import pyvisa
|
|
|
|
class DS1054Z(object):
|
|
def __init__(self, pyvisa_instrument_address, device_handle):
|
|
# initiate correct device class and pass pyvisa handle
|
|
self.pyvisa_instrument_address = pyvisa_instrument_address
|
|
self.pyvisa_instrument_manager = pyvisa.ResourceManager()
|
|
self.pyvisa_instrument_object = self.pyvisa_instrument_manager.open_resource(pyvisa_instrument_address)
|
|
self.pyvisa_instrument_object = self.pyvisa_instrument_object
|
|
self.device_handle = device_handle
|
|
print(f"[MeasKit] started control class instance for {device_handle} at {pyvisa_instrument_address}.")
|
|
def conf_channel(self,channel,state,range,bandwidth,coupling):
|
|
'''Configures a singular Channel'''
|
|
self.CHANneln_DISPlay(channel, state)
|
|
self.CHANneln_RANGe(channel, range)
|
|
self.CHANneln_BWLimit(channel, range)
|
|
self.CHANneln_COUPling(channel, coupling)
|
|
def conf_trigger(self,mode,level,pos_neg,n_edge = 1):
|
|
'''sets up trigger on nth falling/rising edge'''
|
|
self.TRIGger_MODE('NEDG')
|
|
self.TRIGger_NEDGe_LEVel(level)
|
|
self.TRIGger_NEDGe_EDGE(n_edge)
|
|
self.TRIGger_NEDGe_SLOPe(pos_neg)
|
|
def conf_timebase(self,time_div,timebase_skew):
|
|
'''sets up timebase'''
|
|
self.TIMebase_MAIN_SCALe(time_div)
|
|
self.TIMebase_MAIN_OFFSet(timebase_skew)
|
|
def send_trigger(self,single_force = "SINGle"):
|
|
'''send trig'''
|
|
if "FOR" in single_force.upper():
|
|
self.TFORce()
|
|
else:
|
|
self.SINGle()
|
|
def get_data(self,channel):
|
|
'''get data from channel'''
|
|
self.WAVeform_SOURce(channel)
|
|
self.WAVeform_MODE('RAW')
|
|
self.WAVeform_FORMat('ASCii')
|
|
return self.WAVeform_DATA()
|
|
|
|
def AUToscale(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':AUToscale {str(input)}')
|
|
def CLEar(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CLEar {str(input)}')
|
|
def RUN(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':RUN {str(input)}')
|
|
def STOP(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':STOP {str(input)}')
|
|
def SINGle(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SINGle {str(input)}')
|
|
def TFORce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TFORce {str(input)}')
|
|
def ACQuire_AVERages(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':ACQuire:AVERages {str(input)}')
|
|
def ACQuire_MDEPth(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':ACQuire:MDEPth {str(input)}')
|
|
def ACQuire_TYPE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':ACQuire:TYPE {str(input)}')
|
|
def CALibrate_QUIT(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CALibrate:QUIT {str(input)}')
|
|
def CALibrate_STARt(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CALibrate:STARt {str(input)}')
|
|
def CHANneln_BWLimit(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:BWLimit {str(input)}')
|
|
def CHANneln_COUPling(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:COUPling {str(input)}')
|
|
def CHANneln_DISPlay(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:DISPlay {str(input)}')
|
|
def CHANneln_INVert(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:INVert {str(input)}')
|
|
def CHANneln_OFFSet(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:OFFSet {str(input)}')
|
|
def CHANneln_RANGe(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:RANGe {str(input)}')
|
|
def CHANneln_TCAL(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:TCAL {str(input)}')
|
|
def CHANneln_SCALe(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:SCALe {str(input)}')
|
|
def CHANneln_PROBe(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:PROBe {str(input)}')
|
|
def CHANneln_UNITs(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:UNITs {str(input)}')
|
|
def CHANneln_VERNier(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':CHANnel{str(channel)}:VERNier {str(input)}')
|
|
def CURSor_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CURSor:MODE {str(input)}')
|
|
def CURSor_MANual(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CURSor:MANual {str(input)}')
|
|
def CURSor_TRACk(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CURSor:TRACk {str(input)}')
|
|
def CURSor_AUTO(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CURSor:AUTO {str(input)}')
|
|
def CURSor_XY(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':CURSor:XY {str(input)}')
|
|
def DECodern_MODE(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:MODE {str(input)}')
|
|
def DECodern_DISPlay(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:DISPlay {str(input)}')
|
|
def DECodern_FORMat(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:FORMat {str(input)}')
|
|
def DECodern_POSition(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:POSition {str(input)}')
|
|
def DECodern_THREshold_CHANnel1(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:THREshold:CHANnel1 {str(input)}')
|
|
def DECodern_THREshold_CHANnel2(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:THREshold:CHANnel2 {str(input)}')
|
|
def DECodern_THREshold_CHANnel3(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:THREshold:CHANnel3 {str(input)}')
|
|
def DECodern_THREshold_CHANnel4(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:THREshold:CHANnel4 {str(input)}')
|
|
def DECodern_THREshold_AUTO(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:THREshold:AUTO {str(input)}')
|
|
def DECodern_CONFig_LABel(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:CONFig:LABel {str(input)}')
|
|
def DECodern_CONFig_LINE(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:CONFig:LINE {str(input)}')
|
|
def DECodern_CONFig_FORMat(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:CONFig:FORMat {str(input)}')
|
|
def DECodern_CONFig_ENDian(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:CONFig:ENDian {str(input)}')
|
|
def DECodern_CONFig_WIDth(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:CONFig:WIDth {str(input)}')
|
|
def DECodern_UART(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:UART {str(input)}')
|
|
def DECodern_IIC(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:IIC {str(input)}')
|
|
def DECodern_SPI(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:SPI {str(input)}')
|
|
def DECodern_PARallel(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':DECoder{str(channel)}:PARallel {str(input)}')
|
|
def DISPlay_CLEar(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:CLEar {str(input)}')
|
|
def DISPlay_TYPE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:TYPE {str(input)}')
|
|
def DISPlay_GRADing_TIME(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:GRADing:TIME {str(input)}')
|
|
def DISPlay_WBRightness(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:WBRightness {str(input)}')
|
|
def DISPlay_GRID(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:GRID {str(input)}')
|
|
def DISPlay_GBRightness(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:GBRightness {str(input)}')
|
|
def ETABleCommands(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle Commands {str(input)}')
|
|
def ETABlen_DISP(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle{str(channel)}:DISP {str(input)}')
|
|
def ETABlen_FORMat(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle{str(channel)}:FORMat {str(input)}')
|
|
def ETABlen_VIEW(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle{str(channel)}:VIEW {str(input)}')
|
|
def ETABlen_COLumn(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle{str(channel)}COLumn {str(input)}')
|
|
def ETABlen_ROW(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle{str(channel)}:ROW {str(input)}')
|
|
def ETABlen_SORT(self, channel = None, input = None):
|
|
self.pyvisa_instrument_object.write(f':ETABle{str(channel)}:SORT {str(input)}')
|
|
def FUNCtion_WRECord_FEND(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WRECord:FEND {str(input)}')
|
|
def FUNCtion_WRECord_FINTerval(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WRECord:FINTerval {str(input)}')
|
|
def FUNCtion_WRECord_PROMpt(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WRECord:PROMpt {str(input)}')
|
|
def FUNCtion_WRECord_OPERate(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WRECord:OPERate {str(input)}')
|
|
def FUNCtion_WRECord_ENABle(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WRECord:ENABle {str(input)}')
|
|
def FUNCtion_WREPlay_FSTart(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:FSTart {str(input)}')
|
|
def FUNCtion_WREPlay_FEND(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:FEND {str(input)}')
|
|
def FUNCtion_WREPlay_FMAX(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:FMAX? {str(input)}')
|
|
def FUNCtion_WREPlay_FINTerval(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:FINTerval {str(input)}')
|
|
def FUNCtion_WREPlay_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:MODE {str(input)}')
|
|
def FUNCtion_WREPlay_DIRection(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:DIRection {str(input)}')
|
|
def FUNCtion_WREPlay_OPERate(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:OPERate {str(input)}')
|
|
def FUNCtion_WREPlay_FCURrent(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WREPlay:FCURrent {str(input)}')
|
|
def CLS(self, input = None):
|
|
self.pyvisa_instrument_object.write(f'*CLS {str(input)}')
|
|
def ESE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f'*ESE {str(input)}')
|
|
def OPC(self, input = None):
|
|
self.pyvisa_instrument_object.write(f'*OPC {str(input)}')
|
|
def RST(self, input = None):
|
|
self.pyvisa_instrument_object.write(f'*RST {str(input)}')
|
|
def SRE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f'*SRE {str(input)}')
|
|
def WAI(self, input = None):
|
|
self.pyvisa_instrument_object.write(f'*WAI {str(input)}')
|
|
def LAN_DHCP(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:DHCP {str(input)}')
|
|
def LAN_AUToip(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:AUToip {str(input)}')
|
|
def LAN_GATeway(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:GATeway {str(input)}')
|
|
def LAN_DNS(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:DNS {str(input)}')
|
|
def LAN_MANual(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:MANual {str(input)}')
|
|
def LAN_INITiate(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:INITiate {str(input)}')
|
|
def LAN_IPADdress(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:IPADdress {str(input)}')
|
|
def LAN_SMASk(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:SMASk {str(input)}')
|
|
def LAN_APPLy(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':LAN:APPLy {str(input)}')
|
|
def MATH_DISPlay(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:DISPlay {str(input)}')
|
|
def MATH_OPERator(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPERator {str(input)}')
|
|
def MATH_SOURce1(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:SOURce1 {str(input)}')
|
|
def MATH_SOURce2(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:SOURce2 {str(input)}')
|
|
def MATH_LSOUrce1(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:LSOUrce1 {str(input)}')
|
|
def MATH_LSOUrce2(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:LSOUrce2 {str(input)}')
|
|
def MATH_SCALe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:SCALe {str(input)}')
|
|
def MATH_OFFSet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OFFSet {str(input)}')
|
|
def MATH_INVert(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:INVert {str(input)}')
|
|
def MATH_RESet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:RESet {str(input)}')
|
|
def MATH_FFT_SOURce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:SOURce {str(input)}')
|
|
def MATH_FFT_WINDow(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:WINDow {str(input)}')
|
|
def MATH_FFT_SPLit(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:SPLit {str(input)}')
|
|
def MATH_FFT_UNIT(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:UNIT {str(input)}')
|
|
def MATH_FFT_HSCale(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:HSCale {str(input)}')
|
|
def MATH_FFT_HCENter(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:HCENter {str(input)}')
|
|
def MATH_FFT_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FFT:MODE {str(input)}')
|
|
def MATH_FILTer_TYPE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FILTer:TYPE {str(input)}')
|
|
def MATH_FILTer_W1(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FILTer:W1 {str(input)}')
|
|
def MATH_FILTer_W2(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:FILTer:W2 {str(input)}')
|
|
def MATH_OPTion_STARt(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:STARt {str(input)}')
|
|
def MATH_OPTion_END(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:END {str(input)}')
|
|
def MATH_OPTion_INVert(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:INVert {str(input)}')
|
|
def MATH_OPTion_SENSitivity(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:SENSitivity {str(input)}')
|
|
def MATH_OPTion_DIStance(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:DIStance {str(input)}')
|
|
def MATH_OPTion_ASCale(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:ASCale {str(input)}')
|
|
def MATH_OPTion_THReshold1(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:THReshold1 {str(input)}')
|
|
def MATH_OPTion_THReshold2(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:THReshold2 {str(input)}')
|
|
def MATH_OPTion_FX_SOURce1(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:FX:SOURce1 {str(input)}')
|
|
def MATH_OPTion_FX_SOURce2(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:FX:SOURce2 {str(input)}')
|
|
def MATH_OPTion_FX_OPERator(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MATH:OPTion:FX:OPERator {str(input)}')
|
|
def MASK_ENABle(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:ENABle {str(input)}')
|
|
def MASK_SOURce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:SOURce {str(input)}')
|
|
def MASK_OPERate(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:OPERate {str(input)}')
|
|
def MASK_MDISplay(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:MDISplay {str(input)}')
|
|
def MASK_SOOutput(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:SOOutput {str(input)}')
|
|
def MASK_OUTPut(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:OUTPut {str(input)}')
|
|
def MASK_X(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:X {str(input)}')
|
|
def MASK_Y(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:Y {str(input)}')
|
|
def MASK_CREate(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:CREate {str(input)}')
|
|
def MASK_RESet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MASK:RESet {str(input)}')
|
|
def MEASure_SOURce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SOURce {str(input)}')
|
|
def MEASure_COUNter_SOURce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:COUNter:SOURce {str(input)}')
|
|
def MEASure_CLEar(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:CLEar {str(input)}')
|
|
def MEASure_RECover(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:RECover {str(input)}')
|
|
def MEASure_ADISplay(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:ADISplay {str(input)}')
|
|
def MEASure_AMSource(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:AMSource {str(input)}')
|
|
def MEASure_SETup_MAX(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:MAX {str(input)}')
|
|
def MEASure_SETup_MID(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:MID {str(input)}')
|
|
def MEASure_SETup_MIN(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:MIN {str(input)}')
|
|
def MEASure_SETup_PSA(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:PSA {str(input)}')
|
|
def MEASure_SETup_PSB(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:PSB {str(input)}')
|
|
def MEASure_SETup_DSA(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:DSA {str(input)}')
|
|
def MEASure_SETup_DSB(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:SETup:DSB {str(input)}')
|
|
def MEASure_STATistic_DISPlay(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:STATistic:DISPlay {str(input)}')
|
|
def MEASure_STATistic_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:STATistic:MODE {str(input)}')
|
|
def MEASure_STATistic_RESet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:STATistic:RESet {str(input)}')
|
|
def MEASure_STATistic_ITEM(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:STATistic:ITEM {str(input)}')
|
|
def MEASure_ITEM(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':MEASure:ITEM {str(input)}')
|
|
def REFerence_DISPlay(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence:DISPlay {str(input)}')
|
|
def REFerencen_ENABle(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:ENABle {str(input)}')
|
|
def REFerencen_SOURce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:SOURce {str(input)}')
|
|
def REFerencen_VSCale(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:VSCale {str(input)}')
|
|
def REFerencen_VOFFset(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:VOFFset {str(input)}')
|
|
def REFerencen_RESet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:RESet {str(input)}')
|
|
def REFerencen_CURRent(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:CURRent {str(input)}')
|
|
def REFerencen_SAVe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:SAVe {str(input)}')
|
|
def REFerencen_COLor(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':REFerence<n>:COLor {str(input)}')
|
|
def STORage(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':STORage {str(input)}')
|
|
def STORage_IMAGe_TYPE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':STORage:IMAGe:TYPE {str(input)}')
|
|
def STORage_IMAGe_INVERT(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':STORage:IMAGe:INVERT {str(input)}')
|
|
def STORage_IMAGe_COLor(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':STORage:IMAGe:COLor {str(input)}')
|
|
def SYSTem(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem {str(input)}')
|
|
def SYSTem_AUToscale(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:AUToscale {str(input)}')
|
|
def SYSTem_GAM(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:GAM? {str(input)}')
|
|
def SYSTem_LANGuage(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:LANGuage {str(input)}')
|
|
def SYSTem_LOCKed(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:LOCKed {str(input)}')
|
|
def SYSTem_PON(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:PON {str(input)}')
|
|
def SYSTem_OPTion_INSTall(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:OPTion:INSTall {str(input)}')
|
|
def SYSTem_OPTion_UNINSTall(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:OPTion:UNINSTall {str(input)}')
|
|
def SYSTem_RAM(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:RAM? {str(input)}')
|
|
def SYSTem_SETup(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:SETup {str(input)}')
|
|
def TRACen(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>] {str(input)}')
|
|
def TRACen_DATA(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA {str(input)}')
|
|
def TRACen_DATA_DAC16(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA:DAC16 {str(input)}')
|
|
def TRACen_DATA_DAC(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA:DAC {str(input)}')
|
|
def TRACen_DATA_POINts(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA:POINts {str(input)}')
|
|
def TRACen_DATA_POINts_INTerpolate(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA:POINts:INTerpolate {str(input)}')
|
|
def TRACen_DATA_VALue(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA:VALue {str(input)}')
|
|
def TRACen_DATA_LOAD(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRACe[<n>]:DATA:LOAD? {str(input)}')
|
|
def TIMebase_DELay_ENABle(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TIMebase:DELay:ENABle {str(input)}')
|
|
def TIMebase_DELay_OFFSet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TIMebase:DELay:OFFSet {str(input)}')
|
|
def TIMebase_DELay_SCALe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TIMebase:DELay:SCALe {str(input)}')
|
|
def TIMebase_MAIN_OFFSet(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TIMebase[:MAIN]:OFFSet {str(input)}')
|
|
def TIMebase_MAIN_SCALe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TIMebase[:MAIN]:SCALe {str(input)}')
|
|
def TIMebase_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TIMebase:MODE {str(input)}')
|
|
def TRIGger_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:MODE {str(input)}')
|
|
def TRIGger_COUPling(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:COUPling {str(input)}')
|
|
def TRIGger_SWEep(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:SWEep {str(input)}')
|
|
def TRIGger_HOLDoff(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:HOLDoff {str(input)}')
|
|
def TRIGger_NREJect(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:NREJect {str(input)}')
|
|
def TRIGger_EDGe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:EDGe {str(input)}')
|
|
def TRIGger_PULSe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:PULSe {str(input)}')
|
|
def TRIGger_SLOPe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:SLOPe {str(input)}')
|
|
def TRIGger_VIDeo(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:VIDeo {str(input)}')
|
|
def TRIGger_PATTern(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:PATTern {str(input)}')
|
|
def TRIGger_DURATion(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:DURATion {str(input)}')
|
|
def TRIGger_TIMeout(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:TIMeout {str(input)}')
|
|
def TRIGger_RUNT(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:RUNT {str(input)}')
|
|
def TRIGger_WINDows(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:WINDows {str(input)}')
|
|
def TRIGger_DELay(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:DELay {str(input)}')
|
|
def TRIGger_SHOLd(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:SHOLd {str(input)}')
|
|
def TRIGger_NEDGe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:NEDGe {str(input)}')
|
|
def TRIGger_NEDGe_SLOPe(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:NEDGe:SLOPe {str(input)}')
|
|
def TRIGger_NEDGe_EDGE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:NEDGe:EDGE {str(input)}')
|
|
def TRIGger_NEDGe_LEVel(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:NEDGe:LEVel {str(input)}')
|
|
def TRIGger_RS232(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:RS232 {str(input)}')
|
|
def TRIGger_IIC(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:IIC {str(input)}')
|
|
def TRIGger_SPI(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:SPI {str(input)}')
|
|
def WAVeform_STARt(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:STARt {str(input)}')
|
|
def WAVeform_STOP(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:STOP {str(input)}')
|
|
def WAVeform_SOURce(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:SOURce {str(input)}')
|
|
def WAVeform_MODE(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:MODE {str(input)}')
|
|
def WAVeform_FORMat(self, input = None):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:FORMat {str(input)}')
|
|
def LAN_STATus(self):
|
|
self.pyvisa_instrument_object.write(f':LAN:STATus? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def LAN_VISA(self):
|
|
self.pyvisa_instrument_object.write(f':LAN:VISA? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_DATA(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:DATA? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_XINCrement(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:XINCrement? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_XORigin(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:XORigin? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_XREFerence(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:XREFerence? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_YINCrement(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:YINCrement? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_YORigin(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:YORigin? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_YREFerence(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:YREFerence? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def WAVeform_PREamble(self):
|
|
self.pyvisa_instrument_object.write(f':WAVeform:PREamble? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def TRIGger_POSition(self):
|
|
self.pyvisa_instrument_object.write(f':TRIGger:POSition? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def SYSTem_ERRor_NEXT(self):
|
|
self.pyvisa_instrument_object.write(f':SYSTem:ERRor[:NEXT]? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def _SOURcen_APPLy(self):
|
|
self.pyvisa_instrument_object.write(f'[:SOURce[<n>]]:APPLy? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def FUNCtion_WRECord_FMAX(self):
|
|
self.pyvisa_instrument_object.write(f':FUNCtion:WRECord:FMAX? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def ESR(self):
|
|
self.pyvisa_instrument_object.write(f'*ESR? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def IDN(self):
|
|
self.pyvisa_instrument_object.write(f'*IDN? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def STB(self):
|
|
self.pyvisa_instrument_object.write(f'*STB? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def TST(self):
|
|
self.pyvisa_instrument_object.write(f'*TST? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def LAN_MAC(self):
|
|
self.pyvisa_instrument_object.write(f':LAN:MAC? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def MASK_PASSed(self):
|
|
self.pyvisa_instrument_object.write(f':MASK:PASSed? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def MASK_FAILed(self):
|
|
self.pyvisa_instrument_object.write(f':MASK:FAILed? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def MASK_TOTal(self):
|
|
self.pyvisa_instrument_object.write(f':MASK:TOTal? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def MEASure_COUNter_VALue(self):
|
|
self.pyvisa_instrument_object.write(f':MEASure:COUNter:VALue? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def ACQuire_SRATe(self):
|
|
self.pyvisa_instrument_object.write(f':ACQuire:SRATe? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def ETABlen_DATA(self):
|
|
self.pyvisa_instrument_object.write(f':ETABle<n>:DATA? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def DISPlay_DATA(self):
|
|
self.pyvisa_instrument_object.write(f':DISPlay:DATA? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|
|
def DECodern_CONFig_SRATe(self):
|
|
self.pyvisa_instrument_object.write(f':DECoder<n>:CONFig:SRATe? {str(input)}')
|
|
return self.pyvisa_instrument_object.read()
|