08-24-2006 03:55 PM
hi ... finally I have fixed my program. Let me state the program one more time. The program first wait for a triggering signal. When the triggering signal reaches a certain voltage, Lab view will take one measurement. (one point only). Right now I will need to set up 2 input channels.... After taking measurement, Labview will send an out put voltage to AO 0 port ( I am using BNC 2110) . This process will be repeated over and over again by using loop condition...My main problem is that Labview did not process fast enough... I am trying to optimize the programmm... Anyway here is my attached program... if you have time please take a look and give me some comments
08-25-2006 02:15 PM
Hi lam,
The performance of your program will increase if you limit what is performed inside the while loop. I took a look at your origninal VI, as well as the modified version, which you edited in light of Micaela's comments in the previous post. A couple additional modifications I would recommend: Bring the trigger configuration outside the while loop so it is only performed once. Also make sure that you re-start your task if you choose to stop it in each iteration of the loop. I would also suggest removing the framed sequence structures, as they are not necessary in this code. If you need to govern dataflow, you can do that using the error wire between VI's. Most of this code can be run simultaneously however. The sequence structures make your program wait for certain events to complete inside the while loop.
Give that a try and let me know if you still have questions!
Regards,
Nicholas B, National Instruments