digital ouput via usb or serial port
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Walter Roberson
am 31 Mär. 2011
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 Kommentare
Siehe auch
Kategorien
Mehr zu Data Acquisition Toolbox Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!