03-09-2007 08:20 AM
03-12-2007 01:04 PM
Hello Roberto,
How fast is your inner loop running? It looks like you do not have any wait statements in your loop so the loop is only delayed by your 3 bluetooth reads. The only thing that I can think of as a cause would be that you are trying to update your charts too quickly. Any time that you write a value to a chart, the front panel has to update (which can be an expensive operation). Something that may help would be to buffer your data a little before writing to your charts. Instead of reading 1 data point and writing it to a chart immediately, you could read 10 or 15 data points and plot them all at once. This way, you cut down on your front panel updates and your whole program will most likely run more smoothly.
Regards,
Justin D