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
 All Forums
 Origin Forum
 Origin Forum
 Weird bug when calling Origin from Matlab

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rezahasi 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.

6   L A T E S T    R E P L I E S    (Newest First)
rezahasi 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
ML 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
easwar 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
rezahasi Posted - 10/06/2009 : 10:56:37 PM
same thing even after deleting the user files
rezahasi 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.
easwar 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000