serial transmission

6 vues (au cours des 30 derniers jours)
Chirag Gandhi
Chirag Gandhi le 7 Fév 2011
i want to create gui in matlab and after getting input from user i want to transmit data on serial port. so how can i transmit my data serially through matlab ?

Réponses (1)

Walter Roberson
Walter Roberson le 7 Fév 2011
You need to create a serial object, serial(), and you need to use the resulting object in the file identifier position of fwrite() or fread() or fprintf() or fgetl() or the like.
For more advanced serial port use, you would set properties such as buffer sizes and callbacks when you reach a certain number of input characters. See serial object documentation

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by