02-02-2006 10:24 PM - edited 02-02-2006 10:24 PM
Message Edited by Peter W Brown on 02-02-2006 10:36 PM
02-02-2006 10:49 PM
02-03-2006 02:19 PM
02-06-2006 06:05 PM
02-26-2006 07:37 PM - edited 02-26-2006 07:37 PM
Message Edited by Peter W Brown on 02-26-2006 07:52 PM
02-27-2006 07:26 PM - edited 02-27-2006 07:26 PM
Sorry for previous messages. It sent a new message evrytime I pushed a key on the key board. Not sure why.
I have found one of thing that was causing my out of memory error. When I changed the daq assistant to continuous from finite samples, the while loop no longer took one second but was a lot faster. I use an array [0,0.2,0.4,0.8] in the while loop and every time the while loop does one iteration it adds the while loop counter to it, thus giving the time column. Seem the while loop was doing it's iteration far faster than 1 second it was causing my time column to be much larger, therfore making the final array y-dimension a lot larger. From what I can tell, the data collected from the daq assistant was 5 samples at 5 Hz but the extra rows caused by the time coloumn were all zero's.
I have recently put a time vi in that makes the while loop execute in multiples of 1000ms and kept continous sampling. This appears to keep the while loop only doing an iteration every 1 second and thus the time column the same length as the data collected.
I'm sure this is not the best way to do it so please feel free to give advice.
Ideally, but not essential, I would like to input the real time into the time column of my data rather than the fake one I have shown above. I can work out how to do it if one sample was taken every iteration of the while loop by using one of the time vi's, but with multiple samples taken in the daq assistant I can't see how to do this correctly for every sample.
Any suggestions to make my vi run more efficiently would still be appreciated and also any suggestions for saving the data every 10 minutes without making the while loop have to wait till the save has finished.
Sorry for asking so much assistance, Thanks.
Message Edited by Peter W Brown on 02-27-2006 07:50 PM
02-27-2006 10:04 PM
02-28-2006 07:56 PM - edited 02-28-2006 07:56 PM
Message Edited by Peter W Brown on 02-28-2006 08:10 PM
03-01-2006 08:52 PM