Slow output voltage decays
Posted: Tue Sep 21, 2021 4:15 am
Dear Red Pitaya community,
I'm new to Red Pitaya and still learning the basics. I followed the online guide to duplicate their results. I hooked up the output channel to an oscillocope to see the dynamics. However, when I was using the slow analog output and the GPIOs, the output voltage did not stay at the set points. Instead, the voltage decayed with a RC time about 20 ms. The slow analog input and digital input are working fine. I don't know if I have made some errors in my code or it is something else.
Please let me know if you could shed some light on this matter.
Thank you so much!
I have my code attached here:
#!/usr/bin/python
import sys
import time
import redpitaya_scpi as scpi
import numpy as np
import random
rp_s = scpi.scpi(sys.argv[1])
period = 0.1 # seconds
i=0
while (i<=10):
rp_s.tx_txt('DIG:PIN:DIR OUT,DIO7_N')
rp_s.tx_txt('DIG:PIN DIO7_N,1')
rp_s.tx_txt('DIG:PIN LED0,1')
time.sleep(period)
rp_s.tx_txt('DIG:PIN LED0,0')
rp_s.tx_txt('DIG:PIN DIO7_N,0')
print ("Blinking LED["+str(led)+"]")
time.sleep(period)
i+=1
rp_s.close()
I'm new to Red Pitaya and still learning the basics. I followed the online guide to duplicate their results. I hooked up the output channel to an oscillocope to see the dynamics. However, when I was using the slow analog output and the GPIOs, the output voltage did not stay at the set points. Instead, the voltage decayed with a RC time about 20 ms. The slow analog input and digital input are working fine. I don't know if I have made some errors in my code or it is something else.
Please let me know if you could shed some light on this matter.
Thank you so much!
I have my code attached here:
#!/usr/bin/python
import sys
import time
import redpitaya_scpi as scpi
import numpy as np
import random
rp_s = scpi.scpi(sys.argv[1])
period = 0.1 # seconds
i=0
while (i<=10):
rp_s.tx_txt('DIG:PIN:DIR OUT,DIO7_N')
rp_s.tx_txt('DIG:PIN DIO7_N,1')
rp_s.tx_txt('DIG:PIN LED0,1')
time.sleep(period)
rp_s.tx_txt('DIG:PIN LED0,0')
rp_s.tx_txt('DIG:PIN DIO7_N,0')
print ("Blinking LED["+str(led)+"]")
time.sleep(period)
i+=1
rp_s.close()