Skip to main content

How to Configure an Options File with FlexLM

At one point, the FPGA lab requested that we reserve 1 of the 2 seats of the Fixed Point Toolbox for only those machines in the FPGA lab. Such an action requires the creation of an options file and an additional line added to the license.dat file for Matlab on the license server.

1. Create a *.opt file (e.g. fpga.opt) and place it in the Matlab installation directory. The file must contain the following two lines:

RESERVE <number of licenses to reserve> <toolbox to reserve> HOST_GROUP <group name>
HOST_GROUP <group name> <hostname1 hostname2 ...>

For example:

RESERVE 1 Fixed_Point_Toolbox HOST_GROUP fpga
HOST_GROUP fpga abhishek ambric bardddrc bear beast bull byups3 camel

Next the license.dat file needs to be edited. Edit the following line (changes are inside asterisks like this):

DAEMON MLM C:\MATLAB\mlm.exe **options=C:\<installation directory>\<filename>.opt**

For example:

DAEMON MLM C:\MATLAB\mlm.exe options=C:\MATLAB\fpga.opt

3. After doing the steps above, start and stop the license service for Matlab in LMTOOLS (Under the tab Start/Stop/Reread).

A line in the log file should now read “Using options file: “C:\MATLAB\fpga.opt” and “RESERVING 1 Fixed_Point_Toolbox/3D5CD3C9CBC05111E79F license for HOST_GROUP fpga”. Those lines indicate that the options file is being read correctly.