Author |
Topic  |
|
Gideon
Israel
Posts |
Posted - 01/31/2008 : 04:08:38 AM
|
Origin Version (Select Help-->About Origin): 8 Operating System:Windows Vista Home Premium Hello All! Would be grateful if anyone could tell me how to make Origin and Matlab talk to each other. I have Matlab 7.5.0 (R2007b) installed, and I want to use the Origin Console for Matlab. Unlike with Mathematica, where it actually asks you for the location of the kernel, here it simply gives up saying Matlab is not installed. Is there a way to manually browse for the Matlab application within Origin? Many thanks, Gideon |
|
cjfraz
USA
22 Posts |
Posted - 01/31/2008 : 10:16:03 PM
|
I had a similar problem with OriginPro 8 and Matlab R2007b, although on XP. What worked in my case was to enter the following command into the MatLab command window before starting the MatLab console in Origin:
enableservice('AutomationServer');
J...
|
 |
|
minimax
357 Posts |
Posted - 02/01/2008 : 08:16:30 AM
|
Hi Gideon and Jason,
We are checking this problem. It does appear in some computers.
Do you install multiple Matlabs in your system?
And would you mind to try following to see if it works? 1. Open Matlab, run
matlab -unregserver
2. Close Matlab. 3. Open Matlab, run
matlab -regserver 4. Close Matlab. 5. Open Origin and try Matlab console.
Max OriginLab Technical Support
Edited by - minimax on 02/01/2008 08:22:02 AM |
 |
|
Gideon
Israel
Posts |
Posted - 02/02/2008 : 11:10:39 AM
|
Dear Jason and Max, Thank you so much for your help. Unfortunately, Jason, your method doesn't do the trick for me in Vista. But perhaps it's on the right track. I mean, instead of opening the console, or telling that no Matlab is installed, it simply doesn't do anything, and after a few minutes, when I tried to check was it was doing, it said it was busy. I also tried to do what you offered Max. Unfortunately, I have been unable to execute the commands you asked for. Here is what it said: ??? Undefined function or method 'matlab' for input arguments of type 'char'. This was in response to me typing: matlab -unregserver. I'm not too good at Matlab. Could I have made some obvious mistake attempting to execute this code? Would you have another suggestion?
Best Regards, Gideon |
 |
|
cjfraz
USA
22 Posts |
Posted - 02/02/2008 : 10:58:39 PM
|
Gideon,
I believe Max means for you to run the matlab commands from the Windows command prompt. You'll likely need to do this from the directory with Matlab.exe. On my system that is C:\Program Files\MATLAB\R2007b\bin .
That said, this procedure did not work for me.
You might try being more explicit with the enableservice command.
e.g. format it like this...
enableservice('AutomationServer', true)
if you get back ans = 0 then run it one more time.
The Origin Matlab console will not work with that instance of Matlab unless you get back ans = 1.
J...
|
 |
|
stenodeg
Italy
Posts |
Posted - 02/20/2008 : 06:07:15 AM
|
Dear All, I cannot import directly Matlab file in Origin. I have installed 0rigin 7.5 and Matlab 7.0; the operative system is Windows XP Media Center Edition with SP2. When I try to import *.mat files using File:Import:Matlab procedure, a window is opened and I browse the filesystem to get the file I want to import. Then I select the file and the MATLAB Workspace Import is opened in Origin, but only the UPDATE and CLOSE buttons are active. The left part of the window, the one in which I should select the file I want to import is completely gray and no file name is present. I tried also to use the Tool:MATLAB console procedure. When I click on the Import button the Matlab Import window is opened but, again only the UPDATE and CLOSE buttons are active. From the MATLAB Command Window I follow the following procedure File:Show Workspace, then in the Workspace I have to select the file I want to import, go back to Matlab Import window in Origin push UPDATE and, at the end, I can import the file. Is there a way to import directly .mat files in Origin? I tried the method suggested by Jason and Max, but they didn't solved my problem. Thank you for any help, Stefano. |
 |
|
|
Topic  |
|
|
|