MATLAB Answers

Problems with BytesAvailableFcn in App designer

16 views (last 30 days)
Guillermo Cid Espinosa
Guillermo Cid Espinosa on 30 Nov 2017
Commented: wu xianhua on 16 Nov 2020 at 3:52
I write in this forum to see if someone could help me solve the problem I have with the BytesAvailableFn function. I am developing an interface using the matlab app designer but when I run the code the program does not access the read function (I have put a debug to check it) and I do not understand where the error may be. The problem is that this code works in Guide but in App designer it does not. Thank you very much I hope for your help. I enclose a fragment of the code:
app.t_waveforms.BytesAvailableFcnMode = 'byte';
app.t_waveforms.BytesAvailableFcnCount = app.buffer + 8;
set (app.t_waveforms.BytesAvailableFcn, @read);

  0 Comments

Sign in to comment.

Accepted Answer

Chris Portal
Chris Portal on 4 Dec 2017

  3 Comments

Guillermo Cid Espinosa
Guillermo Cid Espinosa on 5 Dec 2017
I changed the code to write it as in the link that you have passed but still the program does not access to the @read function.
Guillermo Cid Espinosa
Guillermo Cid Espinosa on 29 Mar 2018
Thank you very much. I finally managed to solve it. The problem was that in the @read function it was necessary to declare more input arguments.
wu xianhua
wu xianhua on 16 Nov 2020 at 3:52
i have the same problem, have the solution yet ? ths

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!