Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.
If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.
09-02-2009 01:46 PM
Hey,
Cant get the lower portion of this while loop to execute more than once. Please take a look at the jpeg and help me with the obvious.
Thanks,
BLW
09-02-2009 02:11 PM
A good starting point is to use the Error outputs and try to see what error is preventing your code from running.
Ton
09-02-2009 02:12 PM
Have you used execution highlighting (the light bulb icon in the toolbar) so you can see if it does actually execute more than once?
Also take advantage of error inputs and outputs so that you can probe for errors.
I suspect the problem is that you have DAQmx Start Task inside the while loop, and you can't start a task that's already been started, so the second time through the loop you're not passing a valid task to the read, causing it to read no data. DAQmx Start Task should be outside the loop.