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
 Matlab Automation Server

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
jodowd Posted - 10/09/2011 : 5:33:45 PM
I have used the Matlab demo (\Samples\Automation Server\MATLAB\CreatePlotInOrigin.m) which works perfectly. But this demo does not show how to get data back from Origin into Matlab. Does anyone know how to read data out of an Origin worksheet into Matlab using the automation server?
4   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 12/02/2012 : 5:36:27 PM
quote:
Originally posted by defender845

Is there anyway to only pull specific columns using the GetWorksheet command? I'd hate to pull everything into Matlab if I only have 2 columns that I need to have pulled in there.



Hi,

See this wiki page:
http://wiki.originlab.com/~originla/wiki/index.php?title=OriginCOM:Application-GetWorksheet
for details on how to specify start/end rows and/or start/end columns.

Easwar
OriginLab
defender845 Posted - 12/01/2012 : 4:54:17 PM
Is there anyway to only pull specific columns using the GetWorksheet command? I'd hate to pull everything into Matlab if I only have 2 columns that I need to have pulled in there.
jodowd Posted - 10/10/2011 : 2:51:49 PM
Greg,

thanks. GetWorksheet works perfectly.

(1) Send variable mdata to Origin:
invoke(originObj, 'PutWorksheet', 'Data1', mdata);

(2)Read data back into matlab
val=invoke(originObj, 'GetWorksheet', 'Data1')

greg Posted - 10/10/2011 : 1:58:37 PM
The example you cite uses PutWorksheet method to send data array to Origin. Use the GetWorksheet method for the reverse.

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