Changes between Version 22 and Version 23 of ObjectDeveloperGuide

Show
Ignore:
Timestamp:
02/13/10 20:58:37 (14 years ago)
Author:
ismael (IP: 62.57.1.15)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ObjectDeveloperGuide

    v22 v23  
    3434Return” 
    3535}}} 
    36 Figure 1 represents this concept. Notice how the module must announce its presence to ALOE prior to receive any order. 
    3736 
    3837The first order the object will receive will be to initialize (INIT) itself. Then, the module will read a set of initialization parameters, activate the communications interfaces and declare a set of statistics variables (for monitoring purposes). This procedure is executed just once in the life-cycle of the module. 
     
    6261int GetTempo(float freq); 
    6362}}} 
     63 
    6464This function receive as parameter the frequency the module desires to operate. As the environment (ALOE) is the only who knows the execution interval associated to the process, a simply operation will be done to calculate the number of samples to be generated at that precise moment. The amount of samples that the module needs at its input will depend on the algorithm, more precisely, in the rate relation between the input and output frequency. Anyway, the object will wait until all the data it needs is available. Note that this could lead to time violations if frequency relations between collateral objects are not defined with caution. 
    6565