Commit d39e53ad2b39f4e74245c7f9492a0c08db4bccc6

Authored by bmarechal
1 parent 9d344927ea
Exists in master

.

Showing 2 changed files with 0 additions and 36 deletions Inline Diff

redpitaya/server/test.py
import time 1 File was deleted
2
with open('/dev/data16_adc12', 'r') as f: 3
for line in f: 4
print(line.encode('bin')) 5
redpitaya/server/test_emb.py
#!/usr/bin/env python 1 File was deleted
import ctypes, argparse 2
import liboscimp_fpga 3
4
def parse(): 5
parser = argparse.ArgumentParser(description = 'Set offsets to DAC1 and DAC2') 6
parser.add_argument('-of1', 7
action='store', 8
dest='of1', 9
default=0, 10
help='DAC1 offset (bits)') 11
parser.add_argument('-of2', 12
action='store', 13
dest='of2', 14
default=0, 15
help='DAC2 offset (bits)') 16
args = parser.parse_args() 17
return args 18
19
def main(): 20
args = parse() 21
of1 = int(args.of1) 22
of2 = int(args.of2) 23
liboscimp_fpga.add_const_set_offset("/dev/add_const_0", of1) 24
liboscimp_fpga.add_const_set_offset("/dev/add_const_1", of2) 25
print('offset DAC1 : %i'%of1) 26
print('offset DAC2 : %i'%of2) 27