this code works:
Code: Select all
task main(){
int werte[8] = {1, 2, 3, 4, 5, 6, 7, 8};
for (int i=0; i<8; i++) NumOut(0, i*8, werte[i]);
while (true);
}
this doesn't (shows only 0's all over):
Code: Select all
int werte[8] = {1, 2, 3, 4, 5, 6, 7, 8};
task main(){
for (int i=0; i<8; i++) NumOut(0, i*8, werte[i]);
while (true);
}