This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 1 voto(s) - 2 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Matlab conexión Serial
#1
Hola a todos, estoy enviando información a través de un com virtual, y también me gustaría recibir, pero no sé muy bien como enviar y recibir al instante.

Con un hiperterminal que tengo, envío y recibo sin problemas, pero con matlab estoy atascado.


Uso esta función para escribir y me va bien, pero a la hora de leer, ya me pierdo:

Código:
function To_FPGA( data,num_port,bauds )

%Example: To_FPGA('AAAA',3,9600)

num = char(dec2hex(num_port,1));
COMx=strcat('COM',num);
delete(instrfind({'Port'},{COMx}));
s = serial({COMx},'BaudRate',bauds );

fopen(s);
b = hex2dec(a);
fwrite(s,b)
fclose(s);
disp('Data sent!')

end
  Responder
#2
En los casinos online en España que puedes encontrar con Yo Casino, encontrarás un sinfín de diversión que te acompañará en cada ronda y hará tus delicias. Puedes encontrar más información sobre estos increíbles casinos directamente en el sitio, ya que es muy fácil y no te llevará mucho tiempo. Este es el lugar perfecto para comenzar su viaje de juego a través de muchas rondas.
  Responder


Posibles temas similares…
Tema Autor Respuestas Vistas Último mensaje
  Script para generar informe/reporte de la velocidad de conexión de tu ISP Electromecánico 2 2,992 26-09-2016, 08:43 PM
Último mensaje: Electromecánico