How to check if my current license support the State flow toolbox?
Show older comments
Hello,
I have a state flow block in my simulink model. It's supposed that my current Matlab license supports this toolbox. However when I try to run the simulation the following error appears. It means that my current license doesn't support the state flow toolbox?
Best regards
Javier
5 Comments
N A POORNA CHANDRA
on 13 Jun 2023
hi javier , could you share your liscence number and your matlab version
Steven Lord
on 13 Jun 2023
Please don't share license numbers on MATLAB Answers.
Javier
on 13 Jun 2023
Javier
on 13 Jun 2023
Moved: John D'Errico
on 13 Jun 2023
Steven Lord
on 13 Jun 2023
You could contact your license administrator to check, but I suspect @Image Analyst gave the correct answer.
This could be a one-off scenario (someone who doesn't usually need to use Stateflow happened to need it for a little while) or it could be a sign that your organization may want to increase the number of Stateflow license seats you have (if more people are using Stateflow now than were using it when you first added it to your license, and you encounter this resource contention more and more frequently.)
If your company has 10 parking spots available and 10 employees, if a visitor is using one of them because they're here for a one-off meeting you may not need additional spots long-term. One of the employees would need to park elsewhere for the day. But if your company has 10 parking spots available and it's grown to 15 full-time employees, you probably need a couple more spots.
Answers (4)
Image Analyst
on 13 Jun 2023
Edited: Image Analyst
on 13 Jun 2023
0 votes
Type
>> ver
in the command window. If you have a license to use a particular toolbox, it will show up after you type that. That command shows you all the toolboxes you can use.
From your error message it looks like you have a shared license pool with 100 licenses for that toolbox, and it looks like there are 100 users currently using it. You'll have to wait for one of them to quit MATLAB, which will release a license back to the pool, so that you can then use it.
1 Comment
Steven Lord
on 13 Jun 2023
Nothing in the error message refers to 100 licenses, but generally speaking I agree with your diagnosis. The error message indicates that OP's organization has only a certain number of licenses for Stateflow and all of them are currently in use.
Javier
on 13 Jun 2023
0 votes
1 Comment
Image Analyst
on 13 Jun 2023
It looks like your license is now available but for some reason (that I do not know) what you are trying to do is not available with a "Demo Stateflow" license. Call the Mathworks and ask why not.
The 'ver' command shows all of the toolboxes which are available under the current MATLAB license, but this does not not mean that you have access to all of the toolboxes. To get that information, you can run a test to see if you have access to a licese for a specific toolbox. For example;
status = license('test','Stateflow');
will tell you if you have an active license for the Stateflow toolbox.
Now, the bad news is that the name 'Stateflow' used in the license command is the Matlab feature name, and is not always the same name returned from the 'ver' command. In order to use the 'licence' command, you need to know the feature name. Walter Roberson has compiled a partial list, but it is not complete; see Matlab 'feature' names vs. 'ver' names
11 Comments
Jim Riggs
on 13 Jun 2023
'ver' Name Feature Name
Communications Toolbox Communication_Toolbox
Curve Fitting Toolbox Curve_Fitting_Toolbox
DSP System Toolbox Signal_Blocks
Signal Processing Toolbox Signal_Toolbox
Stateflow Stateflow
Javier
on 13 Jun 2023
Image Analyst
on 13 Jun 2023
A license has been released so you should be able to use functions in that toolbox now.
I may have given you a wrong answer. In my system, toolbox licenses are assigned to specific users, so the license('test', ..) returns 1 if the license is assigned. After reading the documentation for the license command, it indicates that the 'test' function returns a 1 if the toolbox is installed, but if you are using floating licenses, you still need to check out the license for the toolbox. In this case, use the command
[status,errmsg] = license('checkout','Stateflow');
In this case, 'status' will indicate if the license checkout was sucessful.
Image Analyst
on 13 Jun 2023
I'm not familiar with that use case. In my experience you can have
- a pool of shared licenses (you have 100) and anyone can use them as long as there is still one unused one available, or
- you have a license for a single user with his own license and he can always use it whenever he wants.
I have not heard of a pool of licenses where the licenses are assigned to specific individual users. You should call the Mathworks on that one.
Jim Riggs
on 13 Jun 2023
I don't know what to tell you. We have 45 seats for Matlab and 38 toolboxes with from 1 to 16 seats. Our IT department assigns the toolbox licenses to specific users. When someone without a toolbox license nees to use one, he has to find someone who is wiling to share his license. This is done by the system administrator re-assigning the licence to the new guy. That's simply how it works here.
Steven Lord
on 13 Jun 2023
There are many different types of license and I think what @Jim Riggs is describing is the Network Named User License Option or perhaps the Counted Individual License Option. But I'm not 100% sure.
Javier
on 14 Jun 2023
Jim Riggs
on 14 Jun 2023
I think that your initial error message that you posted explains it. You do not have a checked-out license for the Stateflow toolbox, but you have been assigned a 'demo' license which will only allow you to run demo models. I would have expected the license checkout to indicate that it failed under these conditions.
You should consult with your IT system manager. Perhaps @Steven Lord has some insight on this? (And yes, I am using a Network Named User license)
Steven Lord
on 14 Jun 2023
It's been a very long time since I had to help support licensing issues. [I don't quite think it's decades, plural, but it's probably pretty close.] I second your recommendation that @Javier contact whomever in their IT department is in charge of administering the licenses to determine if one has become available.
If the IT department can't resolve the problem on their own I recommend contacting Technical Support directly using the Contact Support link under the Get Support heading at the end of this page. The Support staff and your IT department should be able to determine why your MATLAB session appears to not be using the correct license.
Categories
Find more on Installing Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!