Indefinitely "on" Pulsed Signal generation

Applications, development tools, FPGA, C, WEB
Post Reply
rvinayak
Posts: 2
Joined: Sat Nov 30, 2019 7:22 pm

Indefinitely "on" Pulsed Signal generation

Post by rvinayak » 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")

User avatar
redpitaya
Site Admin
Posts: 381
Joined: Wed Mar 26, 2014 7:04 pm

Re: Indefinitely "on" Pulsed Signal generation

Post by redpitaya » Mon May 18, 2020 9:12 am

Maximum amount of repetitions equal to the upper border of <count> = {1...50000, INF}. It means that upon installing INF, the number of repetitions is not infinite but equals to 50000.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 5 guests