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 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 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
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
2   L A T E S T    R E P L I E S    (Newest First)
craig_v Posted - 07/18/2023 : 8:01:37 PM
I know this is years later but how can I do this?

I want to open multiple instances but cannot work out which line of code does this.

c.venables
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 © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000