From: javad on 14 Jul 2010 11:40 Hi i need to use MATLAB for driving a serial port with 921600 baud rate but it does not work with this speed what can i do ? it is really important for me to have this baud rate in MATLAB
From: Walter Roberson on 14 Jul 2010 12:02 javad wrote: > Hi > i need to use MATLAB for driving a serial port with 921600 baud rate > but it does not work with this speed > what can i do ? > it is really important for me to have this baud rate in MATLAB Amazing, I didn't think typical serial ports would run that fast, but I do see that listed as the top-end speed for some ports. My _expectation_ would be that Matlab cannot keep up with the interrupt rate needed for such a port in typical (16-byte FIFO) operation, but that it might be possible if your serial port had a much larger buffer and especially if it could DMA into or out of your buffer space. Are you needing to input or output at that rate? And what kind of application requires you to go that fast without switching to RS422 or to a 4-wire T1 or E0 transmission ?
From: javad on 15 Jul 2010 03:40 Walter Roberson <roberson(a)hushmail.com> wrote in message <Pcl%n.31798$Ls1.10475(a)newsfe11.iad>... > javad wrote: > > Hi > > i need to use MATLAB for driving a serial port with 921600 baud rate > > but it does not work with this speed > > what can i do ? > > it is really important for me to have this baud rate in MATLAB > > Amazing, I didn't think typical serial ports would run that fast, but I > do see that listed as the top-end speed for some ports. > > My _expectation_ would be that Matlab cannot keep up with the interrupt > rate needed for such a port in typical (16-byte FIFO) operation, but > that it might be possible if your serial port had a much larger buffer > and especially if it could DMA into or out of your buffer space. > > Are you needing to input or output at that rate? And what kind of > application requires you to go that fast without switching to RS422 or > to a 4-wire T1 or E0 transmission ? Hi Dear walter first, thanks alot for your reply exactly i use usb bluetooth transceiver that work as a standard COM port. i think the buffer size is not important(at least at first step), because now just i tested it by sending and receiving one byte, in this case, hypertrm of windows is working perfect but MATLAB no.
From: javad on 16 Jul 2010 11:05 Hi Dear all finally i found the solution i used newer matlab version(2009), and it work perfect !!!
|
Pages: 1 Prev: Custom Neuron with nnet toolbox Next: Multiple Legends in GUI Axes |