Hi MatLab gurus
I have a problem that is causing significant frustration as after some time digging these posts, help files and my own troubleshooting I cannot seem to reach the bottom of this issue.
My question is about the process that happens when 'xlsread' goes to open a file. More often than not, the error message "Excel is not responding" pops up that I have to manually click through (clicking 'close'). After the execution of the .m file completes the code seems to have filled the workspace with the correctly pointed to data although having multiple issues opening/closing excel.
Afterward executing the .m file, a 'Excel.exe' process (and only does this intermittently happen) still remains within the task manager as being active, while there is no actual excel application open in my taskbar.
I am running a .m file that 1. reads from excel 2. does a simevents simulation and 3. exports the resulting simulation outputs back into another excel document. On the 'xlswrite' portions of the code the same thing happens. More "Excel is not responding" that requires more click throughs.
This is a significant pain to the automation of the process as these 'popups' mean that I have to manually sit in front of the computer while a monte carlo undergoes a number of iterations.
So my question is - Is there a solution to this, it seems the board is full of Excel problems without a definite response from MathWorks as to the state of this simple command that causes so much trouble.
I look forward to your responses.
I use Vista, 7.10.0 (Matlab, Simulink and SimEvents), Office 2010 all in 32 bit. A generic sample of my code that is generating errors is below:
A=xlsread('file.xlsm','Sheet1','C1:C4000');
B=xlsread('file.xlsm','Sheet1','D1:D4000');
C=xlsread('file.xlsm','Sheet1','E1:E4000');
D=xlsread('file.xlsm','Sheet1','F1:F4000');
|
|
0
|
|
|
|
Reply
|
Matthew
|
8/24/2010 8:46:05 AM |
|
"Matthew " <mcdmj96@yahoo.co.uk> wrote in message <i500sd$ngq$1@fred.mathworks.com>...
> Hi MatLab gurus
>
> I have a problem that is causing significant frustration as after some time digging these posts, help files and my own troubleshooting I cannot seem to reach the bottom of this issue.
>
> My question is about the process that happens when 'xlsread' goes to open a file. More often than not, the error message "Excel is not responding" pops up that I have to manually click through (clicking 'close'). After the execution of the .m file completes the code seems to have filled the workspace with the correctly pointed to data although having multiple issues opening/closing excel.
>
> Afterward executing the .m file, a 'Excel.exe' process (and only does this intermittently happen) still remains within the task manager as being active, while there is no actual excel application open in my taskbar.
>
> I am running a .m file that 1. reads from excel 2. does a simevents simulation and 3. exports the resulting simulation outputs back into another excel document. On the 'xlswrite' portions of the code the same thing happens. More "Excel is not responding" that requires more click throughs.
>
> This is a significant pain to the automation of the process as these 'popups' mean that I have to manually sit in front of the computer while a monte carlo undergoes a number of iterations.
>
> So my question is - Is there a solution to this, it seems the board is full of Excel problems without a definite response from MathWorks as to the state of this simple command that causes so much trouble.
>
> I look forward to your responses.
>
> I use Vista, 7.10.0 (Matlab, Simulink and SimEvents), Office 2010 all in 32 bit. A generic sample of my code that is generating errors is below:
>
> A=xlsread('file.xlsm','Sheet1','C1:C4000');
> B=xlsread('file.xlsm','Sheet1','D1:D4000');
> C=xlsread('file.xlsm','Sheet1','E1:E4000');
> D=xlsread('file.xlsm','Sheet1','F1:F4000');
Based on numerous other threads recently, there seem to be issues with Excel-related functions using Office 2010. Specifically, actxserver seems to have a problem, and xlsread and xlswrite both use actxserver. The reason people get no response from MathWorks is because, even though it has frequently been recommended, people do not seem to want to contact technical support.
I suggest you contact technical support. However, on the off-chance that there's a more simple problem going on, you might want to check that no instance of Excel is running when you start your simulation, and that no cell in a spreadsheet is ever being edited (manually) when your code tries to write to it.
|
|
0
|
|
|
|
Reply
|
myfakeemailaddress (65)
|
8/24/2010 12:01:07 PM
|
|
"Matthew " <mcdmj96@yahoo.co.uk> wrote in message
news:i500sd$ngq$1@fred.mathworks.com...
> Hi MatLab gurus
>
> I have a problem that is causing significant frustration as after some
> time digging these posts, help files and my own troubleshooting I cannot
> seem to reach the bottom of this issue.
*snip*
In that case, I recommend you contact Technical Support. [For instructions
on how to do so, read my signature below.]
--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|
|
0
|
|
|
|
Reply
|
slord (13366)
|
8/24/2010 1:47:26 PM
|
|
|
2 Replies
381 Views
(page loaded in 0.05 seconds)
Similiar Articles: XLSREAD issues - comp.soft-sys.matlabHi MatLab gurus I have a problem that is causing significant frustration as after some time digging these posts, help files and my own troubleshoot... xlsread issues - comp.soft-sys.matlabimport data from excel 2007 with more than 65536 rows to matlab ... XLSREAD issues - comp.soft-sys.matlab import data from excel 2007 with more than 65536 rows to ... Precision problem with xlsread - comp.soft-sys.matlabI have data such as this in an excel sheet. The number of rows and columns can get get bigger (few hundreds). 0.000000000000 363.548604178313... Problem reading Excel files with xlsread, xlsread1 - comp.soft-sys ...Hello, I just bought a new computer with Windows 7 pro (64 bits) and Office 2010 business. I use Matlab 2010. With this configuration, my calls to ... xlsread only runs in basic mode with bootcamp W7 - comp.soft-sys ...xlsread only runs in basic mode with bootcamp W7 - comp.soft-sys ... XLSREAD issues - comp.soft-sys.matlab xlsread only runs in basic mode with bootcamp W7 - comp ... how to do xlsread if I don't know the number of rows on the Excel ...Hi all, Is there a good way of solving this problem? I have an Excel book with quite a number of sheets, each sheet contains one column of date... xlsread error - comp.soft-sys.matlabError when using xlswrite - comp.soft-sys.matlab XLSREAD issues - comp.soft-sys.matlab More often than not, the error message "Excel is not responding" pops up that I ... Problem dividing two vectors - comp.soft-sys.matlabPrecision problem with xlsread - comp.soft-sys.matlab Problem dividing two vectors - comp.soft-sys.matlab XLSREAD issues - comp.soft-sys.matlab Hi MatLab gurus I have a ... import data from excel 2007 with more than 65536 rows to matlab ...xlsread issues - comp.soft-sys.matlab Problem reading Excel files with xlsread, xlsread1 - comp.soft-sys ... import data from excel 2007 with more than 65536 rows to matlab ... ... Using Matlab to access tables build with Datastream AFO for Excel ...xlsread issues - comp.soft-sys.matlab Using Matlab to access tables build with Datastream AFO for Excel ... Hi, does anyone have a problem when accessing Datastream tables ... XLSREAD issues - comp.soft-sys.matlab | Computer GroupHi MatLab gurus I have a problem that is causing significant frustration as after some time digging these posts, help files and my own troubleshoot... xlsread issues - comp.soft-sys.matlab | Computer Groupimport data from excel 2007 with more than 65536 rows to matlab ... XLSREAD issues - comp.soft-sys.matlab import data from excel 2007 with more than 65536 rows to ... 7/23/2012 4:53:36 AM
|