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
 Accessing multiple Origin Projects with LabTalk

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
a_user Posted - 04/02/2000 : 8:42:00 PM
Hi,

I'd like to gather data from several Origin Projects and work with the data in another project. But I didn't find a way to access different projects with LabTalk.

Any hints?

Thanks
Marco

1   L A T E S T    R E P L I E S    (Newest First)
Gary Lane Posted - 04/05/2000 : 8:05:00 PM

Hi,

This is a tricky one...there may be different methods available depending upon the parts of each project file you are interested in. If you are only interested in worksheet data then one approach might be to consecutively open each project file and then export the desired worksheet data to an ASCII text file (see the [ASCIIExport] section of the Origin file FILE.OGS for an example of the LabTalk commands that Origin uses to export ASCII data from a worksheet). Finally, open the aggregating project file and import each ASCII text file into a new worksheet (see the [ASCIIImport] section of the Origin file FILE.OGS for an example of the commands that Origin uses to import ASCII data from a worksheet).

If you are interested in both the worksheet data and formatting then another approach might be to consecutively open each project file and then independently save the desired worksheet windows in a *.OGW file (see the [SaveWindow] section of the Origin file FILE.OGS for an example of the commands that Origin uses to save windows...essentially the LabTalk command save -i). Finally, open the aggregating project file and then open each independently saved window (see the [FileOpen] section of the Origin file FILE.OGS for an example of the commands that Origin uses to open windows...essentially the LabTalk command doc -a). The only problem I foresee with this approach may be a non-optional intervening dialog box that warns of duplicate names (if any) when loading each new window. This would require user intervention at run time.

A more direct way might be to have multiple instances of Origin open at the same time and then transfer the data using DDE but as I understand it DDE does not support communication between multiple instances of the same application. I believe this is a Windows constraint.

Hope this helps.

-Gary



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