Hi Juan:
We are trying to develop a data acquisition system. We need to pass 16 values every 8.33 ms by using DS Socket and display the 16 values in 16 CWGraph components.
I wrote two applications by modifying the DS Writer/Reader With Attributes examples.
To change the interval of the Sender, you have to change the interval of Timer1 in its properties in VB IDE.
To change the number of charts ploted on the CWGraph components, you have to comment or un-comment out the corresponding line in the Receiver VB code.
I run them on a Pentium 3, 600MHz, PC, the test result is:
1. The Receiver can not receive all the 16 values when the sender sends them in less than every 10 ms.
There are some packets lost during the transmission.
2. Whi
le the Receiver not plotting any chart, it can receive all the 16 values corrctly in all the packets when the Sender sends a packet in every 11 ms.
3. If the Receiver plots on one chart, it can receive all the 16 values corrctly in all the packets when the Sender sends a packet in every 12 ms.
4. If the Receiver plots on 16 charts and the Sender sends a packet in less than every 84 ms, the CPU usage will be 100% and the controls, such as lables, on the receiver GUI will not be updated corrctly.
5. If the Sender sends a packet in greater every 85 ms, the Receiver can receive the data and plots them on 16 charts corrctly.
The test results do not meet our requirement and my application is aimed to be used on some less powerful laptops. I hope it is not because the performance limit of the DS Socket and CWGraph.
I was wondering whether we can do something to increase the performance.
Pls find the attached source code files.
Thank you!