Magnitude » History » Version 1

Txinto Vaz, 12/19/2013 02:52 AM

1 1 Txinto Vaz
h1. Magnitude
2 1 Txinto Vaz
3 1 Txinto Vaz
uCANca uses flows to represent magnitudes.
4 1 Txinto Vaz
5 1 Txinto Vaz
We can say that a magnitude can be:
6 1 Txinto Vaz
7 1 Txinto Vaz
# A data that is manipulated by software.
8 1 Txinto Vaz
# A physical magnitude with impact in software:
9 1 Txinto Vaz
## Like a temperature, that translated through a sensor and an ADC port, is affecting a data in the software (the data in the software "follows" the magnitude).
10 1 Txinto Vaz
## Like a motor speed, that can be the response to a command given by the software, translated by a PWM port and commanding the motor power stage to achieve this speed (we can say that the magnitude "follows" the data).
11 1 Txinto Vaz
# A physical magnitude that is important to the system but does not affect the software.
12 1 Txinto Vaz
13 1 Txinto Vaz
This classification is aimed by one of the features of uCANca: automatic code generation.  Somebody can think that the last type of magnitude is useless, but there are some aspects to take into account before discarding it from project:
14 1 Txinto Vaz
15 1 Txinto Vaz
* uCANca helps you to document the development of the whole system.
16 1 Txinto Vaz
* uCANca has the ability to group flows in connectors, so a magnitude as "electric power" can have no impact on code but it is interesting to keep track of it in uCANca.
17 1 Txinto Vaz
* When developing safety critical or high available systems, redundancies are needed.  Some new requirement need to be implemented, not as functionalities of the system, but as on board diagnostics or safety supervisors.  Sometimes these new requirements must be able to keep track or manipulate these magnitudes, converting them to another category (2.1 or 2.2).