Author |
Topic  |
|
rezahasi
.
Posts |
Posted - 10/06/2009 : 8:59:20 PM
|
Hi, I got weird error when calling origin from Matlab using actxserver.
1. New Graph background becomes always green (Properties shows no color). Changing the background to another color, does not change the background color. Note that this background is white and is changeable when origin is opened normally, i.e., not from matlab.
2. Origin can not be closed without releasing the OriginObj.
Here is the code used to create the OriginObj: originObj=actxserver('Origin.ApplicationSI'); invoke(originObj, 'Execute', 'doc -mc 1;'); %invoke(originObj, 'Execute', 'doc -mc 0;'); invoke(originObj, 'IsModified', 'false');
Origin Version: 8.0.63.988SR6 Matlab Version: Matlab 7.9.0 (R2009b) OS: Windows 7 64bit, (also reproduced in Vista x64)
By the way, why the origin is still x86 version ?
Hope that someone would be generous in helping the above issues. I have lot of matlab codes that uses origin for plotting.
Thank you in advance.
Regards, Rezaul

PS. Sorry, this post has also been posted to automation section.
|
|
easwar
USA
1965 Posts |
Posted - 10/06/2009 : 9:30:09 PM
|
Hi Rezaul,
Is there a valid license for Origin 8 on the machine on which you are trying this?
When I test with Matlab R2009a and Origin 8SR6 I do not see this problem, plus I can close Origin without releasing the object. I was testing with the sample .m file shipped with Origin, in the folder \samples\automation server\matlab\createplotinorigin.m
Easwar OriginLab
|
 |
|
rezahasi
.
Posts |
Posted - 10/06/2009 : 9:43:55 PM
|
Yes, And surprisingly, the sample .m file "CreatePlotInOrigin.m" gives no problem on 1st and 2nd instances. But afterwards, again the "Green Read only Background".The origin can be closed without the "Release" command though. I am trying by deleting all user files. Will post the results again.
Thanks. |
 |
|
rezahasi
.
Posts |
Posted - 10/06/2009 : 10:56:37 PM
|
same thing even after deleting the user files |
 |
|
easwar
USA
1965 Posts |
Posted - 10/07/2009 : 1:36:43 PM
|
Hi Rezaul,
Could not reproduce after running multiple times, but I notice now you have Windows 7, so we will set up and test with that as well soon.
Thanks,
Easwar |
 |
|
ML
USA
63 Posts |
Posted - 10/07/2009 : 2:40:37 PM
|
quote: Originally posted by rezahasi
Yes, And surprisingly, the sample .m file "CreatePlotInOrigin.m" gives no problem on 1st and 2nd instances. But afterwards, again the "Green Read only Background".The origin can be closed without the "Release" command though. I am trying by deleting all user files. Will post the results again.
Thanks.
Hi rezahasi,
Do you have the multiple Origin instances running simultaneously or consecutively?
Thanks.
ML
|
 |
|
rezahasi
.
Posts |
Posted - 10/11/2009 : 8:19:34 PM
|
Hi Easwar and ML, I am running single instances. Still could not fix it while using through actxserver.
Thanks for the responses.
Regards, Rezaul |
 |
|
|
Topic  |
|
|
|