ALICE 1.3  1.3.14
Developer documentation
syntax-test.py File Reference

Go to the source code of this file.

Namespaces

 syntax-test
 

Variables

 LeftFreq = float(eval(AWGAFreqEntry.get()))
 
 RightFreq = float(eval(AWGBFreqEntry.get()))
 
float CarrierFreq = 38000.0
 
float PilotFreq = CarrierFreq/2
 
float RecLength = 100000.0
 
tuple Leftperiodvalue = (BaseSampleRate*2)/LeftFreq
 
tuple Rightperiodvalue = (BaseSampleRate*2)/RightFreq
 
tuple Pilotperiodvalue = (BaseSampleRate*2)/PilotFreq
 
tuple Carrierperiodvalue = (BaseSampleRate*2)/CarrierFreq
 
 LeftCycles = int(RecLength/Leftperiodvalue)
 
 RightCycles = int(RecLength/Rightperiodvalue)
 
 PilotCycles = int(RecLength/Pilotperiodvalue)
 
 CarrierCycles = int(RecLength/Carrierperiodvalue)
 
 AWGAwaveform = numpy.cos(numpy.linspace(0, 2*LeftCycles*numpy.pi, RecLength))
 
 AWGBwaveform = numpy.cos(numpy.linspace(0, 2*RightCycles*numpy.pi, RecLength))
 
 LminusR = AWGAwaveform - AWGBwaveform
 
float Pilot = 0.1*numpy.cos(numpy.linspace(0, 2*PilotCycles*numpy.pi, RecLength))
 
 Carrier = numpy.cos(numpy.linspace(0, 2*CarrierCycles*numpy.pi, RecLength))
 
 Time = numpy.linspace(0, RecLength, RecLength)
 
 label
 
 loc
 
 block