How can Spreadsheet Link EX 3.1.5 connect to an already running MATLAB session in MATLAB 7.14 (R2012a)?
1 view (last 30 days)
Show older comments
I don't want to automatically start MATLAB with Spreadsheet Link EX. I'd like to start the Spreadsheet Link EX on a running MATLAB session. But when I click "Send/Get data to/from MATLAB", the error pops up:
MATLAB is not running
Would you like to start MATLAB?
How can I avoid the error?
Accepted Answer
MathWorks Support Team
on 4 Jul 2012
By default, Spreadsheet Link EX starts a new MATLAB session. Alternatively, it can connect to an already running MATLAB session.
To connect a new Excel session to already running MATLAB session:
1. In MATLAB, enter the following command:
enableservice('AutomationServer', true)
This command converts a running MATLAB session into an automation server. Re-execute this command until returns 1.
2. In Excel file, click MATLAB=> Start MATLAB
3. Then you will be able to run other options like "Send data to MATLAB"
For more information on this, see the following URL:
or type the following at the MATLAB prompt:
web([docroot '/toolbox/exlink/bq8lkxb.html'])
0 Comments
More Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!