Posted Thu, 27 Jun 2024 13:42:23 GMT by Sohn, Minho

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!

Posted Wed, 17 Jul 2024 11:27:42 GMT by Sohn, Minho
This problem was solved. Please find belw link.

https://my.tek.com/en/tektalk/oscilloscopes/c2d8918c-193f-ef11-b4ad-00224806fc3c

You must be signed in to post in this forum.