02-20-2008 08:33 AM
02-22-2008
05:21 AM
- last edited on
04-17-2026
03:40 PM
by
Content Cleaner
Hi Mike,
I have had a look at your code and made some minor changes. If you want your code to run as fast as possible, I would advise minimizing the use of local variables. They create race conditions where your time is lost. Inside your for loop, you have a sequence structure, which I am not sure if you need it? You are changing the value of the boolean from true to false again and again for every iteration (which I don't see the point of?). What you want to perhaps do is to have the sequence structure outside the for loop (use a flat sequence structure). Also, you are only taking error of one task into consideration, you need to use the "merge error.vi" to merge these together.You might find the synchronization in NI-DAQmx section helpful.
Regards,