打开Modelsim,出现fatal license error的解决方法

在打开Modelsim或者通过ISE调用Modelsim时,出现fatal license error: unable to check a viewer licence nessary for use of the Modelsim graphical user inteface.Vism is closing:
打开Modelsim,出现fatal license error的解决方法
解决方法:

win10(win8中同样有效)中是这样的 这台电脑》右键选择【属性】》【高级系统设置】》【环境变量】点击【新建】打开编辑对话框,【变量名】命名为MGLS_LICENSE_FILE,【变量值】为你LICENSE.TXT的文件路径,

打开Modelsim,出现fatal license error的解决方法
在win10(win8)环境变量页面有用户变量和系统变量两个环境变量,我是选择两个都设置了。然后便可以正确打开:
打开Modelsim,出现fatal license error的解决方法
Modelsim可以正确进行仿真