add adctest program and filter script

parent 53165df8
import wxversion
# We need at least version 2.8
wxversion.ensureMinimal('2.8')
# We can start importing modules
import wx
import UI.Controller
# Create an application
app = wx.App(False)
# Create our controller and bind it to the app
controller = UI.Controller.Controller(app)
# Start the main loop
app.MainLoop()
import qtGUI as GUI
GUI.start()
......@@ -4,12 +4,12 @@ def adj(x):
return round(x/5.0 * (2**15))
src = open(argv[1], "r")
lines = ['\t' + i for i in src.readlines()]
lines = [int(i.split(", ")[-1][:-1], int(argv[5])) for i in src.readlines()]
src.close()
dest = open(argv[2], "w")
dest.write("[SIGNAL]\nnbits = 24\nrate = 1000000\n=ndata = ")
dest.writelines(lines)
dest.write("[SIGNAL]\nnbits = %s\nrate = %s\ndata = " % (argv[3], argv[4]))
dest.writelines('\t%d\n ' % i for i in lines[48:])
dest.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment