Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 44c8cc4c authored by Terry Burns's avatar Terry Burns Committed by Kostis ANAGNOSTOPOULOS
Browse files

Combined Alternator Harness Complete.

parent d58f57fb
No related branches found
No related tags found
No related merge requests found
[AlternatorName],[RPM],[Amps],[Efficiency],[PulleyRatio]
Alt1,2000,10.000,50.000,3.000
Alt1,2000,40.000,50.000,3.000
Alt1,2000,60.000,50.000,3.000
Alt1,4000,10.000,70.000,3.000
Alt1,4000,40.000,70.000,3.000
Alt1,4000,60.000,70.000,3.000
Alt1,6000,10.000,60.000,3.000
Alt1,6000,40.000,60.000,3.000
Alt1,6000,60.000,60.000,3.000
Alt2,2000,10.000,80.000,2.500
Alt2,2000,40.000,80.000,2.500
Alt2,2000,60.000,80.000,2.500
Alt2,4000,10.000,40.000,2.500
Alt2,4000,40.000,40.000,2.500
Alt2,4000,60.000,40.000,2.500
Alt2,6000,10.000,60.000,2.500
Alt2,6000,40.000,60.000,2.500
Alt2,6000,60.000,60.000,2.500
Alt3,2000,10.000,95.000,3.500
Alt3,2000,40.000,50.000,3.500
Alt3,2000,60.000,90.000,3.500
Alt3,4000,10.000,99.000,3.500
Alt3,4000,40.000,1.000,3.500
Alt3,4000,60.000,55.000,3.500
Alt3,6000,10.000,94.000,3.500
Alt3,6000,40.000,86.000,3.500
Alt3,6000,60.000,13.000,3.500
Alt4,2000,10.000,55.000,2.000
Alt4,2000,40.000,45.000,2.000
Alt4,2000,60.000,67.000,2.000
Alt4,4000,10.000,77.000,2.000
Alt4,4000,40.000,39.000,2.000
Alt4,4000,60.000,23.000,2.000
Alt4,6000,10.000,34.000,2.000
Alt4,6000,40.000,67.000,2.000
Alt4,6000,60.000,35.000,2.000
[MODELSOURCE]
** Alt1 ** , PulleyRatio 3
******************************************************************
Table 1 (2000) Table 2 (4000) Table 3 (6000)
Amps Eff Amps Eff Amps Eff
0 50.000 0 70.000 0 60.000
10 50.000 10 70.000 10 60.000
40 50.000 40 70.000 40 60.000
60 50.000 60 70.000 60 60.000
61 50.000 61 70.000 61 60.000
200 50.000 200 70.000 200 60.000
** Alt2 ** , PulleyRatio 2.5
******************************************************************
Table 1 (2000) Table 2 (4000) Table 3 (6000)
Amps Eff Amps Eff Amps Eff
0 80.000 0 40.000 0 60.000
10 80.000 10 40.000 10 60.000
40 80.000 40 40.000 40 60.000
60 80.000 60 40.000 60 60.000
61 80.000 61 40.000 61 60.000
200 80.000 200 40.000 200 60.000
** Alt3 ** , PulleyRatio 3.5
******************************************************************
Table 1 (2000) Table 2 (4000) Table 3 (6000)
Amps Eff Amps Eff Amps Eff
0 95.000 0 99.000 0 94.000
10 95.000 10 99.000 10 94.000
40 50.000 40 1.000 40 86.000
60 90.000 60 55.000 60 13.000
63 95.000 76 99.000 64 0.000
200 95.000 200 99.000 200 0.000
** Alt4 ** , PulleyRatio 2
******************************************************************
Table 1 (2000) Table 2 (4000) Table 3 (6000)
Amps Eff Amps Eff Amps Eff
0 55.000 0 77.000 0 34.000
10 55.000 10 77.000 10 34.000
40 45.000 40 39.000 40 67.000
60 67.000 60 23.000 60 35.000
60 67.000 89 0.000 82 0.000
200 67.000 200 0.000 200 0.000
********* COMBINED EFFICIENCY VALUES **************
RPM VALUES
AMPS 500 1500 2500 3500 4500 5500 6500 7500
1 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
2 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
3 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
4 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
5 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
6 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
7 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
8 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
9 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
10 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
11 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
12 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
13 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
14 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
15 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
16 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
17 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
18 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
19 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
20 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
21 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
22 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
23 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
24 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
25 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
26 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
27 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
28 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
29 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
30 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
31 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
32 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
33 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
34 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
35 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
36 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
37 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
38 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
39 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
40 0.659 0.686 0.644 0.521 0.430 0.371 0.330 0.308
41 0.658 0.685 0.646 0.528 0.439 0.383 0.346 0.327
42 0.657 0.683 0.649 0.535 0.448 0.395 0.361 0.346
43 0.657 0.682 0.651 0.542 0.457 0.408 0.377 0.365
44 0.656 0.680 0.654 0.549 0.466 0.420 0.392 0.384
45 0.655 0.679 0.656 0.557 0.475 0.432 0.408 0.403
46 0.654 0.678 0.658 0.564 0.484 0.444 0.424 0.421
47 0.654 0.676 0.660 0.569 0.490 0.453 0.434 0.434
48 0.653 0.675 0.660 0.570 0.490 0.452 0.434 0.434
49 0.652 0.674 0.659 0.571 0.490 0.452 0.434 0.434
50 0.652 0.672 0.659 0.573 0.490 0.452 0.433 0.433
51 0.651 0.671 0.659 0.574 0.489 0.452 0.433 0.433
52 0.650 0.670 0.659 0.575 0.489 0.452 0.433 0.433
53 0.649 0.668 0.658 0.576 0.489 0.452 0.433 0.433
54 0.649 0.667 0.658 0.578 0.489 0.451 0.433 0.433
55 0.648 0.665 0.658 0.579 0.489 0.451 0.433 0.433
56 0.647 0.664 0.658 0.580 0.489 0.451 0.432 0.432
57 0.647 0.663 0.658 0.581 0.488 0.451 0.432 0.432
58 0.646 0.661 0.657 0.583 0.488 0.451 0.432 0.432
59 0.645 0.660 0.657 0.584 0.488 0.451 0.432 0.432
60 0.644 0.659 0.657 0.585 0.488 0.450 0.432 0.432
61 0.644 0.657 0.657 0.586 0.488 0.450 0.432 0.432
62 0.643 0.656 0.656 0.588 0.488 0.450 0.431 0.431
63 0.642 0.654 0.656 0.589 0.487 0.450 0.431 0.431
64 0.642 0.653 0.656 0.590 0.487 0.450 0.431 0.431
65 0.641 0.652 0.656 0.592 0.487 0.450 0.431 0.431
66 0.640 0.650 0.656 0.593 0.487 0.449 0.431 0.431
67 0.639 0.649 0.655 0.594 0.489 0.449 0.431 0.431
68 0.639 0.648 0.655 0.595 0.492 0.449 0.430 0.430
69 0.638 0.646 0.655 0.597 0.494 0.449 0.430 0.430
70 0.637 0.645 0.655 0.598 0.497 0.449 0.430 0.430
71 0.637 0.643 0.654 0.599 0.500 0.449 0.430 0.430
72 0.636 0.642 0.654 0.600 0.503 0.448 0.430 0.430
73 0.635 0.641 0.654 0.602 0.505 0.448 0.430 0.430
74 0.634 0.639 0.654 0.603 0.508 0.448 0.429 0.429
75 0.634 0.638 0.654 0.604 0.511 0.448 0.429 0.429
76 0.633 0.637 0.653 0.605 0.514 0.448 0.429 0.429
77 0.632 0.635 0.653 0.607 0.516 0.448 0.429 0.429
78 0.632 0.634 0.653 0.608 0.519 0.447 0.429 0.429
79 0.631 0.633 0.653 0.609 0.522 0.447 0.429 0.429
80 0.630 0.631 0.653 0.610 0.525 0.447 0.428 0.428
81 0.629 0.630 0.652 0.612 0.527 0.447 0.428 0.428
82 0.629 0.628 0.652 0.613 0.530 0.447 0.428 0.428
83 0.628 0.627 0.652 0.614 0.533 0.451 0.428 0.428
84 0.627 0.626 0.652 0.615 0.536 0.456 0.428 0.428
85 0.627 0.624 0.651 0.617 0.538 0.460 0.428 0.428
86 0.626 0.623 0.651 0.618 0.541 0.464 0.427 0.427
87 0.625 0.622 0.651 0.619 0.544 0.468 0.427 0.427
88 0.624 0.620 0.651 0.621 0.547 0.473 0.427 0.427
89 0.624 0.619 0.651 0.622 0.549 0.477 0.427 0.427
90 0.623 0.617 0.650 0.623 0.552 0.481 0.429 0.427
91 0.622 0.616 0.650 0.624 0.555 0.485 0.434 0.427
92 0.622 0.615 0.650 0.626 0.557 0.489 0.440 0.426
93 0.621 0.613 0.650 0.627 0.560 0.494 0.446 0.426
94 0.620 0.612 0.649 0.628 0.563 0.498 0.451 0.426
95 0.619 0.611 0.649 0.629 0.566 0.502 0.457 0.431
96 0.619 0.609 0.649 0.631 0.568 0.506 0.463 0.438
97 0.618 0.608 0.649 0.632 0.571 0.510 0.469 0.445
98 0.617 0.606 0.649 0.633 0.574 0.515 0.474 0.453
99 0.616 0.605 0.648 0.634 0.577 0.519 0.480 0.460
100 0.616 0.604 0.648 0.636 0.579 0.523 0.486 0.467
101 0.615 0.602 0.648 0.637 0.582 0.527 0.491 0.474
102 0.614 0.601 0.648 0.638 0.585 0.532 0.497 0.481
103 0.614 0.600 0.647 0.639 0.588 0.536 0.503 0.488
104 0.613 0.598 0.647 0.641 0.590 0.540 0.508 0.496
105 0.612 0.597 0.647 0.642 0.593 0.544 0.514 0.503
106 0.611 0.596 0.647 0.643 0.596 0.548 0.520 0.510
107 0.611 0.594 0.647 0.644 0.599 0.553 0.526 0.517
108 0.610 0.593 0.646 0.646 0.601 0.557 0.531 0.524
109 0.609 0.591 0.646 0.647 0.604 0.561 0.537 0.531
110 0.609 0.590 0.646 0.648 0.607 0.565 0.543 0.539
111 0.608 0.589 0.646 0.649 0.610 0.570 0.548 0.546
112 0.607 0.587 0.646 0.651 0.612 0.574 0.554 0.553
113 0.606 0.586 0.645 0.652 0.614 0.577 0.558 0.558
114 0.606 0.585 0.645 0.652 0.615 0.577 0.559 0.559
115 0.605 0.583 0.645 0.653 0.615 0.578 0.559 0.559
116 0.604 0.582 0.645 0.653 0.616 0.578 0.560 0.560
117 0.604 0.580 0.644 0.654 0.616 0.579 0.560 0.560
118 0.603 0.579 0.644 0.654 0.617 0.579 0.561 0.561
119 0.602 0.578 0.644 0.655 0.617 0.580 0.561 0.561
120 0.601 0.576 0.644 0.655 0.618 0.580 0.562 0.562
121 0.601 0.575 0.644 0.656 0.618 0.581 0.562 0.562
122 0.600 0.574 0.643 0.656 0.619 0.581 0.563 0.563
123 0.599 0.572 0.643 0.657 0.619 0.582 0.563 0.563
124 0.599 0.571 0.643 0.658 0.620 0.583 0.564 0.564
125 0.598 0.570 0.643 0.658 0.621 0.583 0.564 0.564
126 0.597 0.568 0.642 0.659 0.621 0.584 0.565 0.565
127 0.596 0.567 0.642 0.659 0.622 0.584 0.565 0.565
128 0.596 0.565 0.642 0.660 0.622 0.585 0.566 0.566
129 0.595 0.564 0.642 0.660 0.623 0.585 0.566 0.566
130 0.594 0.563 0.642 0.661 0.623 0.586 0.567 0.567
131 0.594 0.561 0.641 0.661 0.624 0.586 0.567 0.567
132 0.593 0.560 0.641 0.662 0.624 0.587 0.568 0.568
133 0.592 0.559 0.641 0.662 0.625 0.587 0.568 0.568
134 0.591 0.557 0.641 0.663 0.625 0.588 0.569 0.569
135 0.591 0.556 0.640 0.663 0.626 0.588 0.569 0.569
136 0.590 0.554 0.640 0.664 0.626 0.589 0.570 0.570
137 0.589 0.553 0.640 0.664 0.627 0.589 0.571 0.571
138 0.589 0.552 0.640 0.665 0.627 0.590 0.571 0.571
139 0.588 0.550 0.640 0.665 0.628 0.590 0.572 0.572
140 0.587 0.549 0.639 0.666 0.628 0.591 0.572 0.572
141 0.586 0.548 0.639 0.666 0.629 0.591 0.573 0.573
142 0.586 0.546 0.639 0.667 0.629 0.592 0.573 0.573
143 0.585 0.545 0.639 0.667 0.630 0.592 0.574 0.574
144 0.584 0.543 0.639 0.668 0.630 0.593 0.574 0.574
145 0.584 0.542 0.638 0.668 0.631 0.593 0.575 0.575
146 0.583 0.541 0.638 0.669 0.631 0.594 0.575 0.575
147 0.582 0.539 0.638 0.669 0.632 0.594 0.576 0.576
148 0.581 0.538 0.638 0.670 0.633 0.595 0.576 0.576
149 0.581 0.537 0.637 0.671 0.633 0.596 0.577 0.577
150 0.580 0.535 0.637 0.671 0.634 0.596 0.577 0.577
151 0.579 0.534 0.637 0.672 0.634 0.597 0.578 0.578
152 0.579 0.533 0.637 0.672 0.635 0.597 0.578 0.578
153 0.578 0.531 0.637 0.673 0.635 0.598 0.579 0.579
154 0.577 0.530 0.636 0.673 0.636 0.598 0.579 0.579
155 0.576 0.528 0.636 0.674 0.636 0.599 0.580 0.580
156 0.576 0.527 0.636 0.674 0.637 0.599 0.580 0.580
157 0.575 0.526 0.636 0.675 0.637 0.600 0.581 0.581
158 0.574 0.524 0.635 0.675 0.638 0.600 0.581 0.581
159 0.574 0.523 0.635 0.676 0.638 0.601 0.582 0.582
160 0.573 0.522 0.635 0.676 0.639 0.601 0.583 0.583
161 0.575 0.521 0.632 0.673 0.635 0.598 0.579 0.579
162 0.578 0.520 0.629 0.670 0.632 0.595 0.576 0.576
163 0.580 0.519 0.626 0.666 0.629 0.591 0.573 0.573
164 0.583 0.519 0.623 0.663 0.626 0.588 0.569 0.569
165 0.585 0.518 0.620 0.660 0.622 0.585 0.566 0.566
166 0.588 0.517 0.617 0.657 0.619 0.582 0.563 0.563
167 0.590 0.517 0.614 0.653 0.616 0.578 0.560 0.560
168 0.593 0.516 0.611 0.650 0.613 0.575 0.556 0.556
169 0.595 0.515 0.608 0.647 0.609 0.572 0.553 0.553
170 0.598 0.515 0.605 0.643 0.606 0.568 0.550 0.550
171 0.600 0.514 0.602 0.640 0.603 0.565 0.546 0.546
172 0.603 0.513 0.599 0.637 0.599 0.562 0.543 0.543
173 0.605 0.512 0.596 0.634 0.596 0.559 0.540 0.540
174 0.607 0.512 0.593 0.630 0.593 0.555 0.537 0.537
175 0.610 0.511 0.590 0.627 0.590 0.552 0.533 0.533
176 0.612 0.510 0.587 0.624 0.586 0.549 0.530 0.530
177 0.615 0.510 0.583 0.620 0.583 0.545 0.527 0.527
178 0.617 0.509 0.580 0.617 0.580 0.542 0.523 0.523
179 0.620 0.508 0.577 0.614 0.576 0.539 0.520 0.520
180 0.622 0.508 0.574 0.611 0.573 0.536 0.517 0.517
181 0.624 0.507 0.571 0.607 0.570 0.532 0.514 0.514
182 0.623 0.506 0.568 0.604 0.567 0.529 0.510 0.510
183 0.620 0.505 0.565 0.601 0.563 0.526 0.507 0.507
184 0.616 0.505 0.562 0.598 0.560 0.523 0.504 0.504
185 0.613 0.504 0.559 0.594 0.557 0.519 0.500 0.500
186 0.612 0.503 0.558 0.593 0.555 0.518 0.499 0.499
187 0.612 0.503 0.559 0.593 0.556 0.518 0.499 0.499
188 0.612 0.502 0.559 0.593 0.556 0.518 0.500 0.500
189 0.612 0.501 0.560 0.594 0.556 0.519 0.500 0.500
190 0.613 0.501 0.560 0.594 0.556 0.519 0.500 0.500
191 0.613 0.500 0.561 0.594 0.557 0.519 0.500 0.500
192 0.613 0.499 0.561 0.594 0.557 0.519 0.501 0.501
193 0.614 0.498 0.562 0.595 0.558 0.520 0.501 0.501
194 0.616 0.498 0.562 0.597 0.560 0.522 0.503 0.503
195 0.618 0.497 0.563 0.599 0.562 0.524 0.505 0.505
196 0.620 0.496 0.563 0.601 0.564 0.526 0.507 0.507
197 0.622 0.496 0.564 0.603 0.565 0.528 0.509 0.509
198 0.624 0.495 0.564 0.605 0.567 0.530 0.511 0.511
199 0.626 0.494 0.565 0.607 0.569 0.532 0.513 0.513
200 0.628 0.494 0.565 0.609 0.571 0.534 0.515 0.515
......@@ -27,7 +27,7 @@
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>10</ApplicationRevision>
<ApplicationRevision>12</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
......@@ -143,6 +143,7 @@
<Content Include="bin\Debug\ssm.Ahsm">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="ABCDEFG.aalt" />
<None Include="bin\Debug\SSMOLD.ahsm" />
<None Include="HVACTOOL_TemporaryKey.pfx" />
<None Include="My Project\Application.myapp">
......
......@@ -13,7 +13,7 @@ Sub main()
Dim altSignals As New CombinedAlternatorSignals()
' Dim frm As New frmHVACTool("BusDatabase.abdb", "ssm.ahsm")
'Dim frm As New frmHVACTool("BusDatabase.abdb", "ssm.ahsm")
Dim frm As New frmCombinedAlternators("ABCDEFG.aalt",altSignals)
frm.ShowDialog()
......
......@@ -199,26 +199,26 @@ Public Class CombinedAlternator
End If
End Function
Public Function UpdateAlternator(rows As List(Of ICombinedAlternatorMapRow), ByRef feedback As String) As Boolean
'Public Function UpdateAlternator( gridIndex As Integer, rows As List(Of ICombinedAlternatorMapRow), ByRef feedback As String) As Boolean
Dim altName As String = rows.First.AlternatorName
Dim altToUpd As IAlternator = Alternators.First(Function(w) w.AlternatorName = altName)
' Dim altName As String = rows.First.AlternatorName
' Dim altToUpd As IAlternator = Alternators.First(Function(w) w.AlternatorName = altName)
If Not DeleteAlternator(altName, feedback) Then
feedback = feedback
Return False
' If Not DeleteAlternator(altName, feedback) Then
' feedback = feedback
' Return False
End If
' End If
'Re.create alternator.
' 'Re.create alternator.
Dim replacementAlt As New Alternator(altSignals, rows)
Alternators.Add(replacementAlt)
' Dim replacementAlt As New Alternator(altSignals, rows)
' Alternators.Add(replacementAlt)
Return True
' Return True
End Function
'End Function
'Persistance Functions
Public Function Save(aaltPath As String) As Boolean
......
......@@ -393,14 +393,26 @@ End Sub
End if
Else
'This is an update
If Not combinedAlt.UpdateAlternator( GetAlternatorFromPanel() , feedback) then
MessageBox.Show( feedback )
Else
'Get Existing row name.
Dim altName As String = gvAlternators.Rows( Convert.ToInt32(txtIndex.Text)).Cells("AlternatorName").Value.ToString()
'Does name used in update exist in other alternators excluding the original being edited ?, if so abort.
If combinedAlt.Alternators.Where( Function(f) f.AlternatorName<> altName AndAlso f.AlternatorName=txtAlternatorName.Text).Count>0 then
MessageBox.Show( String.Format("The lternator '{0}' name you are using to update the alternator '{1}' already exists, operation aborted",txtAlternatorName.Text,altName))
return
End If
'This is an update so delete the one being updated
If combinedAlt.DeleteAlternator(altName, feedback) AndAlso combinedAlt.AddAlternator(GetAlternatorFromPanel(),feedback ) then
BindGrid()
ClearEditPanel()
UpdateButtonText()
Else
MessageBox.Show( feedback )
End If
End If
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment