10-30-2011 03:49 AM
hello friends...
I have made program for data acq from my serial port and plotting it at real time..
my program is working fine but the problem is that when I run my program , at starting the acquisistion and plotting both are at their best rate means that response is best but as the time passes the acquisition as well as plotting both slow down and using stop watch I conculude that this time gap is approx 9-12 sec 😛
Please help me how to manage with this problem...
Modifies Advance serial read and write Example..
10-30-2011 04:41 AM
You need to try to separate your prcoessing of data and your collectiong of data. As your data set grows, your processing takes more and mroe time. If you use producer and consumer loops, You can coolect your data, and insert it into a queue. In your other loop, you grab the data from the queue (you can grab chunks of data instea dof one data point at a time), and perform your analysis.
LabVIEW includes numerous example of producer/consumer architecure.
10-30-2011 05:29 AM
thank you for reply
Could you please point out some of that examples by name...? so that I can easily find out..
10-30-2011 08:42 AM
Did you try a search? http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/q/producer%20consumer/
Be sure to also read: http://zone.ni.com/devzone/cda/tut/p/id/3023
10-30-2011 10:33 AM
I have tried Queue Basics , it takes time to understand , newbie to labview.
10-30-2011 10:49 AM - edited 10-30-2011 10:49 AM
thank you , good explanation in the websites.