Statistics: Posted by fbalakirev — Mon Mar 18, 2024 4:48 pm
Code:
pip install numpy
Statistics: Posted by Bulova — Mon Mar 18, 2024 4:40 pm
Code:
#!/usr/bin/env python3import sysimport timeimport redpitaya_scpi as scpiIP = 'rp-f066c8.local'rp_s = scpi.scpi(IP)if (len(sys.argv) > 2): led = int(sys.argv[2])else: led = 0print ("Blinking LED["+str(led)+"]")period = 1 # secondswhile 1: time.sleep(period/2.0) rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(1)) time.sleep(period/2.0) rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(0))rp_s.close()
Code:
import redpitaya_scpi as scpi
Statistics: Posted by redpitaya — Mon Mar 18, 2024 3:52 pm
Statistics: Posted by Bulova — Mon Mar 18, 2024 3:20 pm
Statistics: Posted by redpitaya — Mon Mar 18, 2024 2:53 pm
Statistics: Posted by pavel — Mon Mar 18, 2024 2:31 pm
Statistics: Posted by redpitaya — Mon Mar 18, 2024 2:20 pm
Statistics: Posted by Bulova — Mon Mar 18, 2024 2:12 pm
Statistics: Posted by pavel — Mon Mar 18, 2024 9:43 am
Statistics: Posted by pavel — Mon Mar 18, 2024 9:37 am
Code:
"""SCPI access to Red Pitaya."""import socketimport structimport numpy as np
Statistics: Posted by Bulova — Mon Mar 18, 2024 9:24 am
Statistics: Posted by Bulova — Mon Mar 18, 2024 8:38 am
Statistics: Posted by sslerose — Sun Mar 17, 2024 7:57 pm
Code:
#!/usr/bin/env python3import sysimport timeimport redpitaya_scpi as scpiIP = 'rp-f066c8.local'rp_s = scpi.scpi(IP)if (len(sys.argv) > 2): led = int(sys.argv[2])else: led = 0print ("Blinking LED["+str(led)+"]")period = 1 # secondswhile 1: time.sleep(period/2.0) rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(1)) time.sleep(period/2.0) rp_s.tx_txt('DIG:PIN LED' + str(led) + ',' + str(0))rp_s.close()
Statistics: Posted by Bulova — Sun Mar 17, 2024 7:20 pm