Triggered Signal Capture

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

Triggered Signal Capture

Post by rvinayak » Sat Nov 30, 2019 7:29 pm

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))
You do not have the required permissions to view the files attached to this post.

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

Re: Triggered Signal Capture

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

Please try 'ACQ:TRIG:LEV 400 mV' instead of 'ACQ:TRIG:LEV 400'.

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 2 guests