Set configuration for school system

This commit is contained in:
Manuel Thalmann 2023-12-05 18:52:37 +01:00
parent 285809d509
commit cd26f181f8

View file

@ -72,10 +72,10 @@ if __name__ == '__main__':
list_resources(ports, "COM")
# modify the device numbers in the following two lines:
s = serial.Serial(ports[0].device, 923076)
scope = oscilloscope.Oscilloscope(0)
s = serial.Serial(ports[3].device, 923076)
scope = oscilloscope.Oscilloscope(5)
# scope.setup_measurement()
scope.setup_measurement()
# scope.save_conf('scope_setup.conf')
scope.load_conf('scope_setup.conf')
sleep(2) # wait for the oscilloscope to process the setup
@ -83,5 +83,5 @@ if __name__ == '__main__':
# test run -- only TRNG, no recording
# run(s)
# measurement -- RESET the FPGA first! (USB disconnect+connect)
# trng_read(scope, s)
# measurement -- RESET the FPGA >first! (USB disconnect+connect)
trng_read(scope, s)