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))
Triggered Signal Capture
-
- Posts: 5
- Joined: Sat Nov 30, 2019 7:22 pm
Triggered Signal Capture
You do not have the required permissions to view the files attached to this post.
- redpitaya
- Site Admin
- Posts: 901
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Triggered Signal Capture
Please try 'ACQ:TRIG:LEV 400 mV' instead of 'ACQ:TRIG:LEV 400'.
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 24 guests