07-18-2008 03:02 PM
07-18-2008 03:49 PM - edited 07-18-2008 03:51 PM
07-21-2008 09:58 AM
07-21-2008 11:49 AM
I edited the vi by Ceties to stop the while loop when the task done is true. The problem is I only collect 24 samples instead of 30. There is a property node that keeps track of the number of samples read. I will attempt to use that to determine when the program should continue to the next task. I guess I will be using a state machine, but my original question still seams relevant. I can use a simple for loop or a more complex piece of code. I know Ceties addressed this but the answer didn't seem definitive. Any help or answers would be appreciated.
Eric
07-21-2008 11:50 AM
07-21-2008 12:02 PM - edited 07-21-2008 12:06 PM
07-21-2008 12:12 PM
Ceties were starting to type faster than the responses.
When I run your vi, sometimes I only get 25 (not 24 my mistake) samples and other times I get 30. I wrote a post a comple months ago about unwanted data rows in my data file and was told it was a timing issue with the wait ms. I've been trying to avoid this. It seems when I use the while loop with finite samples and don't use a stop bottom I'm not sure if I get all the samples as in this case. If I run the vi several times, I will either read or write 25 sample to my data file and other times 30. Hope that clears up what I'm trying to say.
07-21-2008 12:42 PM
07-21-2008 01:04 PM
Ceties,
It seems like quite a lot of work for something that is so basic. "Collect a finite number of samples and move on." Maybe NI should look into making this more streamlined. If we need to double check to see if the proper number of samples were acquired why even create the finite sample vi?
Thanks for all your help.
Eric
07-21-2008 01:32 PM