Serial Port, Time Between Characters
3 views (last 30 days)
Show older comments
We are developing a data acquisition system to equipment connected via serial port that needs 1 or 2ms between characters. The others properties are specified correctly, but we don't know how to set that time between every character. How do we set that time?
0 Comments
Accepted Answer
Walter Roberson
on 19 Nov 2013
You have two choices:
1) only write one character at a time, pause, write another character (perhaps using a timer to implement the sending); or
2) use 110 baud or 300 baud and specify two stop bits: at less than 1000 baud, one stop bit is more than 1 ms. You might be able to get away with 1200 baud. (Sometimes systems are configurable for 600 baud, but that is not a standard rate.)
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!