필터 지우기
필터 지우기

Launch matlab standalone application from python script

조회 수: 1 (최근 30일)
Maxime Yon
Maxime Yon 2017년 10월 27일
댓글: Maxime Yon 2017년 10월 27일
Hello Matlab community,
I made a matlab standalone application named Baseline_Corector.exe
I want to launch it from Python code with the Python commande :
if true
WIN_BC_path=r'C:/Program Files/CEMHTI-CNRS/Baseline_Corrector/application/Baseline_Corrector.exe'
bc_location=os.path.normpath(WIN_dmfit_path)
subprocess.call([bc_location,datfile])
end
where datfile is the application argument
I get the message : Could not find version 8.2 of the MCR Attempting to load mclmcrrt8_2.dll
As The MCR is instaled, I tried :
if true
os.environ['PATH'] = os.environ['PATH'] +os.pathsep +"C:/Program Files/MATLAB/R2013b/runtime/win64"
end
or
if true
WIN_mcr_path=r'C:/Program Files/MATLAB/R2013b/runtime/win64/'
bc_location=os.path.join(os.path.normpath(WIN_mcr_path),os.path.normpath(WIN_BC_path))
end
I still get the same message. Any ideas ?????
  댓글 수: 1
Maxime Yon
Maxime Yon 2017년 10월 27일
On the second line of the first code extract it is not WIN_dmfit_path but WIN_BC_path sorry

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by