Serial function and -nojvm?

12 visualizaciones (últimos 30 días)
Katie
Katie el 17 de Sept. de 2025
Comentada: Andrei el 16 de Oct. de 2025 a las 17:40
I have successfully run my function to connect and transmit signals in desktop mode, creating a serial connection to do so. I am now trying to implement it into a script with -nojvm. The command screen pops up that JAVA is required sadly. I am aware that the serial function is outdated, but are there any work arounds for -nojvm for the R2018b verison? If I were to update, would the new serialport function have the same problem with -nojvm?
  2 comentarios
Walter Roberson
Walter Roberson el 17 de Sept. de 2025
(The newer serialport functions were introduced in R2019b, so the user cannot use those.)
Katie
Katie el 18 de Sept. de 2025
@Walter Roberson I was aware which is why I wanted to know if updating the version could resolve that issue with the updated function!

Iniciar sesión para comentar.

Respuesta aceptada

dpb
dpb el 18 de Sept. de 2025
Editada: dpb el 18 de Sept. de 2025
It's not documented whether the serialport implementation does or does not use the Java component and since Mathworks has removed release notes for versions going back to R2019, one can't find out whether it might have beeen mentioned when introduced or not.
which -all serialport
/MATLAB/toolbox/matlab/serialport/interface/serialport.m
Just checking...
which -all aardvark
/MATLAB/toolbox/instrument/interface/serialcontroller/aardvark.m
the Instrument Control TB is available here so the documentation link there is to the same function, not a unique one.
Since it is an internal function so the m-file simply calls
obj = internal.Serialport(varargin{:});
so there's no way to know what is inside.
I think the only other way to be certain would be to download a trial version and test it yourself.
Submit this to Mathworks as an official support request at <Product Support Page> for clarification,
  1 comentario
Andrei
Andrei el 16 de Oct. de 2025 a las 17:40
serialport doesn't require JVM, and was introduced in MATLAB R2019b.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by