Demo 11 Liscencing Error

Hi all,

I am currently trying to use MRspa to pre-process and LCModel to analyse single voxel spectroscopy data.

I have downloaded the latest versions of MRspa and lcmodel, and also used the
touch $HOME/.lcmodel/license command on lcmodel’s website before trying it with MRspa.

When using lcmodel in isolation, the trial test runs look OK, however when I try to use it in conjunction with MRspa the demo 11 error pops up indicating a liscencing issue.

I am a bit stuck because I thought the touch command from lc-model’s website was supposed to solve this? What can I do this resolve this issue?

Screenshot of my PS file is uploaded here for reference

Thanks very much for your help

According to information on the LCModel website, as well as creating the ~/.lcmodel/license file you must also supply the master license key in each control file (adding a line: key = 210387309).

The latest publicly-released version of MRspa is from August 2018, which predates LCModel’s switch to free licensing – so it won’t handle this for you directly. However, look at section 4.5 for the MRspa manual: you should be able to edit the control file template used by MRspa, to add this line:

key = 210387309

Otherwise, if you are comfortable building LCModel from source (using the instructions here), it is also possible to disable the license check completely (but modifying your control files will probably be easier). Around line 2532 of LCModel.f :

Thanks so much Alex!! the addition of key to the MRspa Control file fixed it! much appreciated

1 Like