• RE: Issue with Generating a Single Burst Pulse using 5 Series MSO AFG

    This problem was solved. Please find belw link.

    https://my.tek.com/en/tektalk/oscilloscopes/c2d8918c-193f-ef11-b4ad-00224806fc3c
  • RE: Issue with SCPI Query Commands on Tektronix 5 Series MSO58 AFG using PyVISA

    Hi Emma,

    Thank you so much for your suggestion! I checked the firmware version of my MSO58, and it was quite old (Ver 1.2). After updating it to Ver 1.44, I am now receiving the correct responses from the MSO58 for the afg:output:mode? and afg:ccount? query commands. Your advice was incredibly helpful and resolved the issue.

    Thanks again for your assistance!

    Best regards, 

    Minho

  • Issue with SCPI Query Commands on Tektronix 5 Series MSO58 AFG using PyVISA


    Hi Tektronix Community,

    I am currently testing the AFG functionality on the Tektronix 5 Series MSO58 using PyVISA and SCPI commands from the manual. I encountered issues when executing the following query commands from the AFG command group:

        •    afg:output:mode?
        •    afg:ccount?

    The execution of these commands fails with the error code 0xBFFF0015, indicating that the operation timed out before completion. I performed the tests using the Tektronix OpenChoice software.

    Here are the details of my setup:

        •    Instrument Model: Tektronix 5 Series MSO58
        •    Software: Tektronix OpenChoice
        •    Library: PyVISA
        •    Connection Methods: USB and Network (both methods result in the same timeout issue)

    It is worth noting that other query and write commands within the AFG command group work correctly without any issues.

    Has anyone experienced similar issues or could provide guidance on resolving this timeout error? Any suggestions or insights would be greatly appreciated.

    Thank you!
  • Issue with Generating a Single Burst Pulse using 5 Series MSO AFG

    Hello,

    I am trying to generate a single burst pulse using the Arbitrary Function Generator (AFG) on a 5 Series MSO(MSO58) oscilloscope. However, instead of generating a single pulse, the pulse is recurring at a 1 kHz frequency. Below is the Python code I am using with PyVISA to configure the AFG:

    import pyvisa

    # PyVISA Resource Manager instantiation
    rm = pyvisa.ResourceManager()

    # Oscilloscope's TCP/IP address (Socket connection)
    visa_addr = 'TCPIP0::10.10.10.101::INSTR'

    try:
        # Connect to the oscilloscope
        oscilloscope = rm.open_resource(visa_addr)
        
        # Send *IDN? command to check connection
        idn_response = oscilloscope.query('*IDN?')
        print(f'Oscilloscope response: {idn_response}')
        
        # Send SCPI commands to configure the AFG
        # Set waveform to pulse
        oscilloscope.write('AFG:FUNC PULSE')
        
        # Set frequency to 1kHz
        oscilloscope.write('AFG:FREQ 1E3')
        
        # Set pulse width to 500us
        oscilloscope.write('AFG:PULS:WIDT 500E-6')
        
        # Set burst mode cycle count to 1
        oscilloscope.write('AFG:BURSt:CCOUnt 1')
        
        # Trigger burst mode
        oscilloscope.write('AFG:BURSt:TRIGger')

        # Set output mode to burst
        oscilloscope.write('AFG:OUTPut:MODe BURSt')
        
        # Turn on output
        oscilloscope.write('AFG:OUTPut:STATE ON')
        
        print("AFG configuration completed.")
        
    except Exception as e:
        print(f'Error occurred while connecting to or configuring the oscilloscope: {e}')
    finally:
        # Close the connection
        oscilloscope.close()
     

    Despite these settings, the pulse is being generated repeatedly at a 1 kHz rate instead of just once. I am looking for guidance on how to configure the AFG to produce a single burst pulse correctly.

    Thank you in advance for your assistance!