02-08-2007 11:56 AM
02-12-2007 11:25 AM
I replaced the Timed Loop with a While Loop and a timer and it works fine.
Too bad the timed loop doesn't work in this application.
Since I struggled with the timed loop I'd like to know why I couldn't connect a wire to "dt" without it causing an error.
Right now it's a technical curiosity and I'm moving on.
Mark
02-12-2007 10:53 PM
Hello Mark,
Thank you for posting to the discussion forum. I see that in your code you are trying to generate a periodic analog output signal by using the timed loop.
I have included a link to the help file on the Timed Loop. You can use this as a reference.
Timed
With regards to your application, if you want to write to your AO channel periodically, it would be more efficient to use a while loop. Perhaps consider moving your create channel, timing, and clear task outside the while loop. This will save processing time so you do not have to create and destroy the task every time it executes the loop.
Take a look at these resources and let us know if you are still running into issues.
Regards,
Applications Engineer | National Instruments
02-13-2007 09:01 AM