12-10-2006 07:02 PM
12-11-2006 12:12 PM
12-11-2006 03:53 PM
12-12-2006 06:11 PM - edited 12-12-2006 06:11 PM
Hello,
I looked at your VI and have couple of questions/suggestions for you to try.
Is there a specific reason why you are using a timed loop instead of a regular while loop? It could be possible that the code inside the loop is taking longer to execute than the "dt" that you specified.
Please connect a boolean indicator to "Finished Late" output on the output-node of the timed loop to verify this. Also I don’t think you would need to have the extra delay of 1000ms in the 3rd frame of the flat sequence structure since you have already specified the "dt". I also believe that the "Stop Capture" button should be inside the timed loop so that a new value can be read for every iteration.
Please try using a regular while loop in your code to see if it makes a difference.
I don’t have the Matlab and the specific instrument available to me, so I am not in a position to explicitly test this code out.
Let us know how it goes.
Regards,
Chetan K
Application Engineering
National Instruments
Message Edited by CKap on 12-12-2006 06:30 PM
12-15-2006 10:31 PM
12-19-2006 10:10 PM
12-19-2006 10:50 PM