[solved:] structure operations working faulty
Page 1 of 1

Author:  Ford Prefect [ Wed May 14, 2008 3:21 pm ]
Post subject:  [solved:] structure operations working faulty

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:
teachOut=Neuron0[0].out;     //

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):

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 !

Author:  elemes [ Thu May 15, 2008 4:34 am ]
Post subject:  Re: structure operations still seem to work faulty

did you check disassembly view?
what code is generated?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group