SDT-base Contents   Functions      PDF Index |
This is a sample script
% 1. Try automated download cd(tempdir);if ~exist('./sdtdemos');mkdir('sdtdemos');end cd(fullfile(tempdir,'sdtdemos')); if ~exist('sdtrlm')% Download and extract sdtrlm mex file to tempdir/sdtdemos fname='sdtcur.zip'; urlwrite('https://www.sdtools.com/distrib/beta/sdtcur.zip',fname); unzip(fname) end % If it fails % - do unzip by hand % - in Matlab go to the unzipped directory % 2. Generate the license request string sdtcheck('sitereq') % In the ListDialog select the products of interest and press OK % 3. Once you have received the sdt.lic file by email % place it in the directory where you downloaded the distribution % 4. Install target=fullfile(matlabroot,'toolbox','sdt'); % Or your own choice sdtkey install % 5. Possibly edit startup or pathdef
Note that the licence file is copied in sdt/7.5/sdt.lic if you ever need to edit it.
Floating SDT licenses can use the RLM license manager. To install the server, download https://www.sdtools.com/distrib/RLM.zip.
cd MyServerLocation rlmutil rlmhostid rlmutil rlmstat
cd MyServerLocation rlm > outputfile rlmutil rlmhostid
Note that you should NEVER run the RLM server as a priviledged user (root on unix or administrator on Windows). You can also find more administration help at https://www.reprisesoftware.com/RLM_License_Administration.pdf. In particular, the -install_service option is useful for windows, and boot time init is described for Linux.
On the client side (user copies of SDT), you will need to follow the procedure for SDT installation at https://www.sdtools.com/faq/Release.html,
# type(fullfile(prefdir,'sdt.lic')) % for display in MATLAB HOST NameOfServer ANY 5053 ISV sdt
sdtcheck('rlm')
copyfile(which('sdt.lic'),prefdir);
When using a floating license on a shared network, you don't need to install SDT on each computer. You can simply add the directory to your path by adding the following lines to your startup.m file
pw0=pwd; cd('target') % Replace target by the correct location sdtcheck('path');cd(pw0);clear pw0
If you do not have a shared drive, simply copy the SDT directory (use which('feplot') to verify its location) from one computer to the next.