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 for Programming
 LabTalk Forum
 pClamp import automation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kaiousama

Japan
Posts

Posted - 09/14/2004 :  10:48:54 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I always import pClamp data files with the same settings, so i'd like to write a script that automatize the import process passing the prefereces to import routine.

I noticed that pClamp.ogs is the modularized script for importing pClamp data using lababf32.dll, it basically display the OpenFile Dialog then display lababf32 configuration dialog, then import data accoriding to preferences selected in the lababf32 dialog.

I want my script to automatically pass preferences to lababf32.dll without opening the lababf32 dialog, but unfortunately i didn't find the lababf32 properties names anywhere.

Is there a documentation of lababf32.dll where all properties are listed? is lababf32.h interface avaible?

To be precise i need to set the import style (by channel or by episode) and the imported channel number.

Thanks.

Origin Version (Select Help-->About Origin): 6.0
Operating System:

Edited by - kaiousama on 09/14/2004 10:53:32 AM

Laurie

USA
404 Posts

Posted - 09/15/2004 :  2:05:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
When you look at the [main] section of the pClamp.ogs file, the first line is as follows:

dll -a abf lababf32;

You can look up the dll LabTalk command but what it does is load the DLL called lababf32 into memory and map its properties and methods to a new LabTalk object called abf.

So if you first run the dll command and then in the Script Window, type the following:

abf.=

Press Return you'll see the entire list of properties and methods.

Notice that in the pClamp.ogs file, that these get used. You can take the code here and modify it such that the dialog doesn't open. For example, "abf.dialog();" is what opens the dialog, so you don't want to use this.

You should be able to figure most things out by looking at the script in the pClamp.ogs file.



OriginLab Technical Support
Go to Top of Page

kaiousama

Japan
Posts

Posted - 09/16/2004 :  02:10:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much Laurie,
I've successfully founded the desidered properties (abf.channel and abf.maxchannel) and successfully modified pClamp.ogs in order to automatically import pClamp files with without showing the dialog.
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