digital ouput via usb or serial port
1 回表示 (過去 30 日間)
古いコメントを表示
GUYZ PLEASE HELP.... I NEED TO GIVE DIGITAL OUTPUT OF A MICROCONTROLLER ON PC. FOR THIS CONNECTED A SERIAL RS232 PORT WHITH A USB CONNECTOR.
NOW HOW DO I GET IT????
0 件のコメント
回答 (1 件)
Walter Roberson
2011 年 3 月 31 日
If you need to read from a serial port, the use serial() to create a serial port object and set some of its attributes, use set() to set more extended attributes for handling the port, and fopen() the port. If the fopen works, the fread() or fgetl() or fgets() from the port will input values from the serial port. The number of bytes ready to read at any one time will be the BytesAvailable property of the serial port object. You might want to set up a BytesAvailableFcn callback to be triggered when a given number of bytes appears or when the input detects a callback.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simultaneous and Synchronized Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!