Borrar filtros
Borrar filtros

If it is possible to display matlab's command window in app designer's text area?

23 visualizaciones (últimos 30 días)
Hi. I wonder if there is a possibility to display matlab's command window in app designer's text area. Im working with USRP B200 mini radio and i need to display command window's result in my app. This will allow the application to show the result of sending of receiving data. Without this, the application will be useless. I have no idea how to do this. Can you help me?
  3 comentarios
DGM
DGM el 19 de Dic. de 2021
Why is it necessary to dump serial data to the console instead of storing it? Is that simply the behavior of some pre-existing tool, or is the code within your control?

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 19 de Dic. de 2021
cmdWinDoc = com.mathworks.mde.cmdwin.CmdWinDocument.getInstance;
initial = cmdWinDoc.getLength;
% Run the external program:
sin(rand)
drawnow
Msg = char(cmdWinDoc.getText(initial, cmdWinDoc.getLength - initial));
Now insert Msg in the text field. This could be done by a timer also.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by