09-28-2006 02:02 AM
09-28-2006 02:30 AM
09-28-2006 02:40 AM
09-28-2006 03:22 AM
Hi Ton,
I know my data manipulation takes out a bit of time, okay, quite a lot of time. I attached my vi (finitie looping test.vi) with the sub vis. The sub vis are the data arranging stuff. Please point out any mistake in the program or if the data manipulation is doing something wrong. I have also attach my excel file result.
Thanks for your reply!
Regards,
Dick
09-28-2006 03:24 AM
09-28-2006 04:34 AM - edited 09-28-2006 04:34 AM

Message Edited by TonP on 09-28-2006 11:34 AM
Message Edited by TonP on 09-28-2006 11:45 AM
09-28-2006 08:32 PM
09-28-2006 11:25 PM
09-29-2006 02:12 AM
Hi Ton,
Thanks for verifying this timing problem for me. I tried placing the start tasks outside the loop and ended up with error -200284. some or all of the sample have not been acquired.
I attached my simplifed vis, one with the start tasks out of the loop and the other with the start tasks inside the loop (basically is the old vi). I searched my Labview example and couldn't really find a vi that shows how to synchronize a voltage input read with a counter output frequency. Hope you can take a look at my vi and point out the problem.
Thanks again, you've been a great help!
Regards,
Dick
09-29-2006 02:01 PM
Hi Dick,
Regarding synchronizing the counter operation with Analog Input. Looking at the code, I see that you are starting the Analog Input Task before Counter Task. Because of this even before the counter task is started, the analog input task will try to acquire. Because of this analog input task cannot find the sample clock for smaller duartion and will be timeout.
I rearranged the tasks so that the countertask starts before analog input task. This should fix the problem hopefully. Please post back if you still get the error.
Thanks,
Kalyan