Indefinitely "on" Pulsed Signal generation
Posted: Sat Nov 30, 2019 7:31 pm
Hi,
I was trying to produce a sine pulse wave(burst) via a python script using the SCPI interface.
I ran into a problem and was wondering if you could help?
I wanted to produce a 1MHz freq sine wave with number of repeats = 22 and a repeat time of 100. I would like the pulsed wave to be on indefinitely until I pass a specific command to stop.
What I have observed is that the pulsed wave does come on for a short time but then automatically switches off. This is despite me making the SOUR1:BURS:NOR -1.
Could you please help by providing guidance as to how can I make the burst be on indefinetly?
My code below.
import sys
import redpitaya_scpi as scpi
rp_s = scpi.scpi(sys.argv[1])
wave_form = 'sine'
freq = 1000000
ampl = 1
numberOfWaves = 22
repeatTime = 100
rp_s.tx_txt('GEN:RST')
rp_s.tx_txt('SOUR1:FUNC ' + str(wave_form).upper())
rp_s.tx_txt('SOUR1:FREQ:FIX ' + str(freq))
rp_s.tx_txt('SOUR1:VOLT ' + str(ampl))
rp_s.tx_txt('SOUR1:BURS:STAT ON')
rp_s.tx_txt('SOUR1:BURS:NCYC ' + str(numberOfWaves))
rp_s.tx_txt('SOUR1:BURS:NOR -1')
rp_s.tx_txt('SOUR1:BURS:INT:PER ' + str(repeatTime))
rp_s.tx_txt('SOUR1:TRIG:SOUR INT')
rp_s.tx_txt('SOUR1:TRIG:IMM')
rp_s.tx_txt('OUTPUT1:STATE ON')
print("Burst on")
I was trying to produce a sine pulse wave(burst) via a python script using the SCPI interface.
I ran into a problem and was wondering if you could help?
I wanted to produce a 1MHz freq sine wave with number of repeats = 22 and a repeat time of 100. I would like the pulsed wave to be on indefinitely until I pass a specific command to stop.
What I have observed is that the pulsed wave does come on for a short time but then automatically switches off. This is despite me making the SOUR1:BURS:NOR -1.
Could you please help by providing guidance as to how can I make the burst be on indefinetly?
My code below.
import sys
import redpitaya_scpi as scpi
rp_s = scpi.scpi(sys.argv[1])
wave_form = 'sine'
freq = 1000000
ampl = 1
numberOfWaves = 22
repeatTime = 100
rp_s.tx_txt('GEN:RST')
rp_s.tx_txt('SOUR1:FUNC ' + str(wave_form).upper())
rp_s.tx_txt('SOUR1:FREQ:FIX ' + str(freq))
rp_s.tx_txt('SOUR1:VOLT ' + str(ampl))
rp_s.tx_txt('SOUR1:BURS:STAT ON')
rp_s.tx_txt('SOUR1:BURS:NCYC ' + str(numberOfWaves))
rp_s.tx_txt('SOUR1:BURS:NOR -1')
rp_s.tx_txt('SOUR1:BURS:INT:PER ' + str(repeatTime))
rp_s.tx_txt('SOUR1:TRIG:SOUR INT')
rp_s.tx_txt('SOUR1:TRIG:IMM')
rp_s.tx_txt('OUTPUT1:STATE ON')
print("Burst on")