03-22-2011 10:53 PM
Please find the attached code for serial communication of packets with an inter packet delay of 100ms.The time required for receiving 2 packets is 300ms initailly which increases to 500 ms after an hr 0r so.Also the CPU usage increases from 10% to 60%.
Could you please go through the code and let me know where I am going wrong.
Please can anyone reply asap , its urgent
03-22-2011 11:14 PM
Where do we begin? What is your top level VI?
My guess is that somewhere you have an array growing without bounds, and the memory shuffling is slowing down your code.
03-22-2011 11:16 PM
Serial comm.vi is the main VI
03-22-2011 11:36 PM
The string array that acts as part of a queued state machine near the top of the code. Put an indicator on that along with an indicator for array size. See if that is growing as your program progresses.
03-23-2011 05:12 AM
Thanks for the reply....
I deleted the array bytes3 in serialcomm_engine.vi , the performance has improved but still if i open some other application it momentarily goes high to 500 ms.Any solution for this.