The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Weird bug when calling Origin from Matlab
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rezahasi

.
Posts

Posted - 10/06/2009 :  8:59:20 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

rezahasi

.
Posts

Posted - 10/06/2009 :  9:43:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

rezahasi

.
Posts

Posted - 10/06/2009 :  10:56:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
same thing even after deleting the user files
Go to Top of Page

easwar

USA
1965 Posts

Posted - 10/07/2009 :  1:36:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

ML

USA
63 Posts

Posted - 10/07/2009 :  2:40:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

rezahasi

.
Posts

Posted - 10/11/2009 :  8:19:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Easwar and ML,
I am running single instances. Still could not fix it while using through actxserver.

Thanks for the responses.

Regards,
Rezaul
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000