Index: /branches/eam_branch_20080511/ppSim/src/ppSimLoop.c
===================================================================
--- /branches/eam_branch_20080511/ppSim/src/ppSimLoop.c	(revision 17847)
+++ /branches/eam_branch_20080511/ppSim/src/ppSimLoop.c	(revision 17848)
@@ -108,8 +108,6 @@
             psVector *biasCols = ppSimMakeBiassec (cell, config);
 
-            for (int i = 0; i < cell->readouts->n; i++) {
-
-                pmReadout *readout = cell->readouts->data[i];
-                assert (readout);
+	    pmReadout *readout;
+	    while ((readout = pmFPAviewNextReadout (view, fpa, 1))) {
 
                 // if we have not read in a weight or generated a fake image above, we need to
