The Origin Forum
File Exchange
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
 All Forums
 Origin Forum for Programming
 Forum for Automation Server/COM and LabVIEW
 Opening Multiple Instances of Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

matt_haxem

USA
4 Posts

Posted - 03/22/2018 :  2:44:33 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Castiel

268 Posts

Posted - 03/23/2018 :  9:52:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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_______ /____\____ 
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 © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000