Page 1 of 1

Triggered Signal Capture

Posted: Sat Nov 30, 2019 7:29 pm
by rvinayak
Hi,

I’m trying to capture a pulsed wave (signal) using a trigger.

However for some reason the capture starts as soon as I run this code and not when the trigger should activate.

Could you please help and advise?

The output graph is attached.

The python code I use for this is below:


rp_s = scpi.scpi(sys.argv[1])
rp_s.tx_txt('ACQ:RST')
rp_s.tx_txt('ACQ:DEC 1')
rp_s.tx_txt('ACQ:TRIG:LEV 400')
rp_s.tx_txt('ACQ:TRIG:DLY 0')
rp_s.tx_txt('ACQ:TRIG CH1_PE')
rp_s.tx_txt('ACQ:START')


while 1:
rp_s.tx_txt('ACQ:TRIG:STAT?')
if rp_s.rx_txt() == 'TD':
break


# get Voltage Data. assuming volatage on source1
rp_s.tx_txt('ACQ:SOUR1:DATA?')
voltage_buff_string = rp_s.rx_txt()
voltage_buff_string = voltage_buff_string.strip(
'{}\n\r').replace(" ", "").split(',')
voltage_buff = list(map(float, voltage_buff_string))

Re: Triggered Signal Capture

Posted: Mon May 18, 2020 9:24 am
by redpitaya
Please try 'ACQ:TRIG:LEV 400 mV' instead of 'ACQ:TRIG:LEV 400'.