Changeset 4198

Show
Ignore:
Timestamp:
06/18/07 16:29:44 (6 years ago)
Author:
DrewCormier
Message:

wrong variable name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/AWG/trunk/AWG/sources.py

    r4197 r4198  
    4141 
    4242    def gen_sine(self): 
    43         '''freq is frequency in cycles per packet.  signal_len is the length of the packet.  type is the data type to return (e.g., "float", "short", "int")''' 
    4443 
    4544        count = 0 
    4645        sine = [] 
    4746        while count < self.parent.signal_len: 
    48             sine.append(math.sin(self.parent.freq*2*math.pi*count/self.parent.signal_len)) 
     47            sine.append(math.sin(self.parent.frequency*2*math.pi*count/self.parent.signal_len)) 
    4948            count = count + 1 
    5049 
     
    5352 
    5453    def gen_cosine(self): 
    55         '''freq is frequency in cycles per packet.  signal_len is the length of the packet.  type is the data type to return (e.g., "float", "short", "int")''' 
    5654 
    5755        count = 0 
    5856        cosine = [] 
    5957        while count < self.parent.signal_len: 
    60             cosine.append(math.cos(self.parent.freq*2*math.pi*count/self.parent.signal_len)) 
     58            cosine.append(math.cos(self.parent.frequency*2*math.pi*count/self.parent.signal_len)) 
    6159            count = count + 1 
    6260