필터 지우기
필터 지우기

How can I use serial() without using an InstrumentControlToolbox license?

조회 수: 1 (최근 30일)
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.

채택된 답변

Vinod
Vinod 2016년 9월 8일
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')
  댓글 수: 1
Martin Hoecker
Martin Hoecker 2016년 10월 4일
Unfortunately I am sure that it's the serial function that causes the license checkout (see edited question). But thank you for your answer, it worked great!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by