problems on reordering data from serial
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Danilo NASCIMENTO
le 14 Nov 2013
Réponse apportée : Walter Roberson
le 15 Nov 2013
Is there anyway of reordering the signals that have been received through serial? For example, I'm sending 1 2 3 and it is coming 3,1,2 or 1,3,2 or even 1,2,3. I want always the same sequence.
2 commentaires
Walter Roberson
le 14 Nov 2013
Please show the command you are using to write the signals, and the command you are using to read the signals.
Réponse acceptée
Walter Roberson
le 15 Nov 2013
It sounds like you are not mux'ing the signals before they get to the transmitter block.
Alternately you are not using a switch block clocked by time to select which signal is going to reach the transmitter block.
Remember to check that the datatype for the values being transmitted is the same as what you are pulling out. For example if your signals are double precision numbers that encode integers, then do not pull them off the receive port as if they are bytes.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Signal Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!