Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ezeio2:expref:start [2020-09-18 19:11] – [Reverse expressions] andreh | ezeio2:expref:start [2022-11-16 23:50] (current) – [Field expressions] andreh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Expressions ===== | ===== Expressions ===== | ||
| - | {{indexmenu_n> | + | {{indexmenu_n> | 
| Within the configuration of an ezeio, mathematical expressions are used to produce a value/ | Within the configuration of an ezeio, mathematical expressions are used to produce a value/ | ||
| Line 18: | Line 18: | ||
| Enter the following in the " | Enter the following in the " | ||
| - | '' | + | '' | 
| </ | </ | ||
| Line 94: | Line 94: | ||
| Since we are looking for kW-hours, we need to divide the momentary power with 36000 (3600 seconds in an hour, and we are re-evaluating 10 times per second). | Since we are looking for kW-hours, we need to divide the momentary power with 36000 (3600 seconds in an hour, and we are re-evaluating 10 times per second). | ||
| + | === Example: Signal filter === | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | <code javascript> | ||
| + | |||
| + | Knowing that the expression evaluated 10 times per second, we are keeping 99% of the value, and adding 1% from the signal every 100ms. Thus the response time for this filter is about 7s for a 3dB (50%) response. | ||
| ==== Reverse expressions ==== | ==== Reverse expressions ==== | ||