How do I solve "Unable to start Excel server for import"?

5 Ansichten (letzte 30 Tage)
翼
am 28 Okt. 2024
Bearbeitet: Saurabh am 28 Okt. 2024
I got the below error when I tried to execute the Simulink model.
I can figure it out but I'm not quite sure what exactly I should do.
What is the next step to the Simulink model?
I wonder if I need to install Microsoft Excel to my local PC.... I have a hunch, though....
Warning: Unable to start Excel server for import. basic' mode. See HELP XLSREAD for details.
Please refer to HELP XLSREAD for details.
> in xlsread (line 86)
In VCU_CNT_set_params (line 21)
In init_setting (line 25)
In run (line 112)
Error while using: xlsread (line 148)
Worksheet 'sheet1' not found.
Error: VCU_CNT_set_params (line 21)
VCU_CNT_trq_require_accper = xlsread('VCU_params.xlsx','sheet1','B2:I2');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: init_setting (line 25)
VCU_CNT_set_params;
^^^^^^^^^^^^^^^^^^
Error: run (line 112)
evalin('caller', strcat(scriptStem, ';'));

Akzeptierte Antwort

Saurabh
Saurabh am 28 Okt. 2024
Bearbeitet: Saurabh am 28 Okt. 2024
Hi @翼,
I came across a similar discussion regarding this issue. In that case, the problem was that Excel was operating in a virtualized environment. It might be helpful to reinstall Office using a proper .msi installation instead of the click-to-run version.
The MATLAB answer thread can be found here:

Weitere Antworten (0)

Kategorien

Mehr zu Reporting and Database Access finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by