Changes between Version 22 and Version 23 of ObjectDeveloperGuide
- Timestamp:
- 02/13/10 20:58:37 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ObjectDeveloperGuide
v22 v23 34 34 Return” 35 35 }}} 36 Figure 1 represents this concept. Notice how the module must announce its presence to ALOE prior to receive any order.37 36 38 37 The 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. … … 62 61 int GetTempo(float freq); 63 62 }}} 63 64 64 This 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. 65 65