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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Accessing multiple Origin Projects with LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 04/02/2000 :  8:42:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Gary Lane

USA
150 Posts

Posted - 04/05/2000 :  8:05:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

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


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