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

9 次查看(过去 30 天)
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, ';'));

采纳的回答

Saurabh
Saurabh 2024-10-28
编辑:Saurabh 2024-10-28
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:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Export to MATLAB 的更多信息

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by