MATLAB gets stuck in the "Initializing" state during startup from bat file
조회 수: 4 (최근 30일)
이전 댓글 표시
I am running win7 and MATLAB 2010B. The MATLAB licence is held on our lab licence server.
When I start MATLAB normally it runs fine. "Initializing" takes a few seconds and then proceeds to "Ready" as expected. Great.
I now ask MATLAB to start through a bat file on Task Scheduler at 3am (say). When I get into the office at 7am (yeah, sure!) I see MATLAB has fired the IDE up fine but has got stuck in the intializing state.
Hence this problem only occurs when running from bat file.
I read the below: http://www.mathworks.co.uk/support/solutions/en/data/1-2Z18MA/ I do not have any such MATLAB related system env variables specified, but I do not think this relates to a MATLAB licence held on a server.
I put pause(120) at the start of my matlab file, but it makes no diffference.
I then try and modify my bat file from:
start matlab -r "addpath('D:\CODE\MATLAB\Matlab_Code\startUp');abs_autoStartUp"
to
start matlab -c 28000@999.999.999.6 -r "addpath('D:\CODE\MATLAB\Matlab_Code\startUp');abs_autoStartUp"
Where the port and the ip address are the ones specified in network.lic in my program files. The path relates to the location of abs_autoStartUp.m.
This seems to make no difference.
This is running on a stand alone machine, not connected to a domain.
(apologies, as this is a "repost" as it was accidentially accepted as being correct the first time round).
any ideas?
thanks!!
댓글 수: 1
Walter Roberson
2012년 5월 8일
Cross-reference: http://www.mathworks.com/matlabcentral/answers/37741-matlab-gets-stuck-in-the-initializing-state-during-startup-from-bat-file
채택된 답변
Matlab2010
2012년 5월 16일
댓글 수: 1
Daniel Shub
2012년 5월 16일
Good to know. When asked a reasonable question, the technical support from TMW is generally very good.
추가 답변 (2개)
Daniel Shub
2012년 5월 9일
More questions than answers, but I will throw them out as an answer:
In the morning after the machine has been rebooted from the Task Scheduler can you launch MATLAB?
Does the license server get powered down at 3am?
What about if your bat file "sleeps" for a couple of minutes after rebooting so the network can come up?
Can you contact the license server from the bat file?
댓글 수: 8
Daniel Shub
2012년 5월 11일
1. open DOS
2. type
matlab -r "addpath('D:\CODE\MATLAB\Matlab_Code\startUp');abs_autoStartUp"
3. hit enter
Critical to this is not to use "start"
댓글 수: 4
Daniel Shub
2012년 5월 14일
That works fine for me. I would think about creating a new temporary user and seeing if it works for that user. If it doesn't, then contact technical support with all the details you have given here.
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!