
[solved:] structure operations working faulty
hi,
structure operations occasionally still seem to work faulty (1.30Beta).
in line 314 of the following code, a global variable is assigned to a structure variable:
there is never another assignment to "teachOut",
and if Neuron0[0].out is going to be changed, it's assigned to teachOut immediately,
so both values always should be equal to each other:
in the display, both values are shown at any time;
but as you can observe, both values often are different (the first time when the 4th input pattern (1,1) appears):
[EDIT:]
problem solved,
the reason for the faulty assignments was the too slowly working in->net->out calculating thread.
I added a wait command after every new "IN" pattern generation in order to wait for the slower thread, and now the code is working fine.
Thx to all !