How can I use serial() without using an InstrumentControlToolbox license?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Martin Hoecker
el 5 de Sept. de 2016
Comentada: Martin Hoecker
el 4 de Oct. de 2016
My installation of Matlab2016a includes the Instrument Control Toolbox. I want to use the serial() function, which should work without having the Instrument Control Toolbox installed. However, with the Instrument Control Toolbox, it activates the license:
license('inuse')
% -> matlab
ser_obj = serial('COM1');
license('inuse')
% -> instr_control_toolbox
% matlab
Is there any way to avoid this unexpected behavior? My Instrument Control Toolbox license is a floating network license, and I would prefer to not hog it unless absolutely necessary.
0 comentarios
Respuesta aceptada
Vinod
el 8 de Sept. de 2016
Just using the SERIAL functionality should not check out a license for Instrument Control Toolbox. Are you sure none of your other code is using functions from the Instrument Control Toolbox?
If you are sure, you can surround your code that uses SERIAL like this:
license('test','instr_control_toolbox','disable')
.
<your code here>
.
license('test','instr_control_toolbox','enable')
Más respuestas (0)
Ver también
Categorías
Más información sobre Platform and License en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!