Project

General

Profile

Download (1.65 KB) Statistics
| Branch: | Tag: | Revision:
1
-- This file has been generated by CoCoSim2.
2

    
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 03-Dec-2018 22:05:02
5
(*
6
Original block name: gain_test_uK_order_PP/Gain6
7
*)
8
node  Gain6_12_007(u_1 : real;
9
	u_2 : real;
10
	u_3 : real;
11
	u_4 : real;
12
	u_5 : real;
13
	u_6 : real;
14
	__time_step : real;
15
	__nb_step : int;)
16
returns(Out1_1 : real;
17
	Out1_2 : real;
18
	Out1_3 : real;
19
	Out1_4 : real;);
20
var K_1 : real;
21
	K_2 : real;
22
	K_3 : real;
23
	K_4 : real;
24
	K_5 : real;
25
	K_6 : real;
26
	Product_1 : real;
27
	Product_2 : real;
28
	Product_3 : real;
29
	Product_4 : real;
30
let
31
	K_1 = 1.000000000000000;
32
	K_2 = 3.000000000000000;
33
	K_3 = 5.000000000000000;
34
	K_4 = 2.000000000000000;
35
	K_5 = 4.000000000000000;
36
	K_6 = 6.000000000000000;
37
	Product_1 = 0.0 + (u_1 * K_1) + (u_3 * K_2) + (u_5 * K_3);
38
	Product_3 = 0.0 + (u_1 * K_4) + (u_3 * K_5) + (u_5 * K_6);
39
	Product_2 = 0.0 + (u_2 * K_1) + (u_4 * K_2) + (u_6 * K_3);
40
	Product_4 = 0.0 + (u_2 * K_4) + (u_4 * K_5) + (u_6 * K_6);
41
	Out1_1 = Product_1;
42
	Out1_2 = Product_2;
43
	Out1_3 = Product_3;
44
	Out1_4 = Product_4;
45
tel
46

    
47
(*
48
Original block name: gain_test_uK_order_PP
49
*)
50
node  gain_test_uK_order_PP(In7_1 : real;
51
	In7_2 : real;
52
	In7_3 : real;
53
	In7_4 : real;
54
	In7_5 : real;
55
	In7_6 : real;)
56
returns(Out7_1 : real;
57
	Out7_2 : real;
58
	Out7_3 : real;
59
	Out7_4 : real;);
60
var Gain6_1 : real;
61
	Gain6_2 : real;
62
	Gain6_3 : real;
63
	Gain6_4 : real;
64
	__time_step : real;
65
	__nb_step : int;
66
let
67
	(Gain6_1, Gain6_2, Gain6_3, Gain6_4) = Gain6_12_007(In7_1, In7_2, In7_3, In7_4, In7_5, In7_6, __time_step, __nb_step);
68
	Out7_1 = Gain6_1;
69
	Out7_2 = Gain6_2;
70
	Out7_3 = Gain6_3;
71
	Out7_4 = Gain6_4;
72
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
73
	__nb_step = (0 -> ((pre __nb_step) + 1));
74
tel
75

    
(1068-1068/1153)