How to check if my current license support the State flow toolbox?

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

hi javier , could you share your liscence number and your matlab version
Please don't share license numbers on MATLAB Answers.
My matlab version is R2020b
Looking forward to hearing from you
Hello,
After typing the command >>ver I obtain the following message (attached):
Seems that the state flow tool box is included in my license right?. Then why I obtain this error?
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.

Sign in to comment.

Answers (4)

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

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.

Sign in to comment.

I obtain now the following error. It says that I have a demo state flow license??

1 Comment

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.

Sign in to comment.

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

'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
I have typed the comand you told me and I obtain "status=1". I attach a screeshot. Therefore does it mean that I have an active license for the Stateflow toolbox?
Yes - this is a true/false result. see license.
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.
I'm not familiar with that use case. In my experience you can have
  1. a pool of shared licenses (you have 100) and anyone can use them as long as there is still one unused one available, or
  2. 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.
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.
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.
I have tried the commands you told me in the command window and I obtain the following (attached Capture3):
Seems that I have the state flow toolbox installed but for some reason the error says that I have an invalid state flow license and the simulation doesn't run (Capture4). What do you think?
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)
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.

Sign in to comment.

But according to Capture 3 seems that I have a state flow toolbox installed right?. Otherwise the status shouldn't be "1" right?.
For your info the license that I have is not a pool of shared licenses, the license is just installed in my laptopt

1 Comment

Capture.png says that you have an "example version" of Stateflow that only allows example programs to run.
Likewise, Capture1.png and Capture4.png indicate that you are using a demo license.
Talk to your IT system manager.

Sign in to comment.

Categories

Asked:

on 13 Jun 2023

Commented:

on 14 Jun 2023

Community Treasure Hunt

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

Start Hunting!