it won't work, because in the line 42 you are using zellen array and it is visible only inside to the setup() function.
When you are in the loop() function the zellen array used is the global variable and that array only has one element and that is the problem.
I recommend you rename the line 7 for the next line
long zellen[MAX_ENTRY]; (with MAX_ENTRY as a static number for instance 3).
And comment the line 42, also when you set a value or read a value from the array use zellen[ i ] and not zellen[ i ][ 0 ], for instance:
Set its value: zellen[ i ] = 1000;
Read its value: long val = zellen[ i ];
gianafrancisco:
it won't work, because in the line 42 you are using zellen array and it is visible only inside to the setup() function.
When you are in the loop() function the zellen array used is the global variable and that array only has one element and that is the problem.
EXACTLY that was it.
Thanaks a lot!
I did it like this, because i wanted the "zellen" (cell voltage) array to only have as many entrys as the "zellenzahl" (number of cells)
now my array has 0 entrys, which actually is no problem at all.
The array is zellen*[j], because there are more entrys to come, like the difference to the minimum voltage of each cell.* Is this a problem? Otherwise i just create multiple arrays