From: Trung on 9 Sep 2009 19:34 I'm using a timer (period 0.001s) to read data from device through serial port. I got the perfect signal from the the device. However, as soon as I used Stripchart to display the signal, my signal is distorted. There are several possible problems that can cause the distorted signal: - Reason comes from the device, it sends data faster than the reading speed of Matlab so that the input buffer is full and the device can't send more data to the input buffer. This causes data loss.(I can't reduce sending rate from device because it is the lowest ) -Reason comes from Matlab, it seem the callback function( serial reading + stripchart display) don't have enough time to execute one cycle before the other cycle begin, so it drops the real-time data. Are there any one have the same problem with me ? Thank you. Tim PS: I don't ask for details , I just ask for solution.
|
Pages: 1 Prev: Distributing Matlab as part of a .NET project Next: S-Functions and Global Variables |