From: Rasmus on
Hi there

A month ago I wrote a very simple code to read from a COM-port. I have a device, which just transmits random numbers via COM3, and then I just sample them using MATLAB.

The problem is know, that creating a serial object and reading from it is EXTREMELY slow. I can take as long as 10 seconds to open an object. I haven't changed the computer nor the software. Can you provide a solution to the problem?

Thanks
From: Trent Jarvi on

"Rasmus" <prof.rasmusolesen(a)gmail.com> wrote in message
news:hn5ur6$are$1(a)fred.mathworks.com...
> Hi there
>
> A month ago I wrote a very simple code to read from a COM-port. I have a
> device, which just transmits random numbers via COM3, and then I just
> sample them using MATLAB.
>
> The problem is know, that creating a serial object and reading from it is
> EXTREMELY slow. I can take as long as 10 seconds to open an object. I
> haven't changed the computer nor the software. Can you provide a solution
> to the problem?
>


Hi Rasmus,

I've seen behavior like this while using some bluetooth dongles that are
presented as serial ports. I would suggest contacting customer support so
they can gather detailed information not suitable for a news post.


From: Rasmus on
I'll do that, thanks