How can I send a Hex-Code over Realterm without converting it?!
26 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Daniel Niefi
le 4 Juin 2014
Réponse apportée : Daniel Niefi
le 4 Juin 2014
Hello there,
I am using the newest Realterm Version (3.0.0.20 and Matlab R2014a) and try to send a Hexcode (for example '7e55443322117f') to my serial port. I have the problem that the Hex Data is always converted into ASCII code befor sending it.(Output is then the Ascii code 37 65 35 35 34 34 33 33 32 32 31 31 37 66) I guess that I need to "Send it as Numbers" (I have also found something like "SendAs" function but not how to implement it) from the Realterm program but I do not know how I can implement this function in Matlab.. Can someone help me with this?!
Thank you in advance!
Daniel
My mini-code example:
function [ ] = Realterm_send(send)
hrealterm=actxserver('realterm.realtermintf'); % start Realterm as a server
hrealterm.baud=57600;
hrealterm.caption='Matlab Realterm Server';
hrealterm.port='1';
hrealterm.windowstate=1; %minimized
hrealterm.PortOpen=1;
send = ('7e55443322117f');
invoke(hrealterm, 'PutString',send);
end
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Octave 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!