The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Opening Multiple Instances of Origin

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 HyperlinkInsert EmailInsert 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 [?]

 
   

T O P I C    R E V I E W
matt_haxem Posted - 03/22/2018 : 2:44:33 PM
Origin Ver. and Service Release (Select Help-->About Origin): Origin Pro 2017
Operating System: Windows 7 Professional

Hi guys! I am using COM and have written a code in Matlab that opens up an instance of Origin and imports my data into a worksheet and then plots it.

My problem is the following: I have a lot of data, separated into separate folders. I want to be able to loop through all of my folders and import the data in each folder into a SEPARATE Origin project. Here are my questions:

1. Is it possible to use COM to open and control 2 (or many more) separate instances of Origin at one time? (Not projects, since I know Origin can only support one project at once, but just separate Origin applications/windows)
2. If not, is it possible to open, edit and close an Origin object/application and then re-open a new one?

Thanks for the help!

Matt
1   L A T E S T    R E P L I E S    (Newest First)
Castiel Posted - 03/23/2018 : 9:52:57 PM
quote:

1. Is it possible to use COM to open and control 2 (or many more) separate instances of Origin at one time? (Not projects, since I know Origin can only support one project at once, but just separate Origin applications/windows)


You can create multiple instances of Application.
quote:

2. If not, is it possible to open, edit and close an Origin object/application and then re-open a new one?


To save a project: https://www.originlab.com/doc/COM/Classes/Application/Save
To create a new project: https://www.originlab.com/doc/COM/Classes/Application/NewProject



     #####
    #### _\_  ________
    ##=-[.].]| \      
    #(    _\ |  |------|
     #   __| |  ||||||||
      \  _/  |  ||||||||
   .--'--'-. |  | ____ |
  / __      `|__|[o__o]|
_(____nm_______ /____\____ 

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