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
 Forum for Origin C
 get data from curve
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kanderlee

Taiwan
Posts

Posted - 10/08/2007 :  10:50:08 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version: 7.5 SR4
Operating System:XP SP2



Hi, everybody,

If I want to get dada for the exist curve by using data reader and aslo put the the number which I got into a worksheet, what code can achieve these functions?

Kander Lee

Mike Buess

USA
3037 Posts

Posted - 10/08/2007 :  11:12:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Look for DoToolbox command and GetPts command in the index of your programming guide.

Mike Buess
Origin WebRing Member
Go to Top of Page

kanderlee

Taiwan
Posts

Posted - 10/09/2007 :  03:55:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Mike,

I've seen the help file after your advice, but I don't know where to put "macro" to excute. Are macros excuted in the code builder? or in Script wiodow? I've tried to put a macro in the code builder, but it didn't work! I've also the help file about macro, and tried to put a macro in the script window, but nothing happened!

Kander Lee
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 10/09/2007 :  04:09:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Macros are LabTalk scripts which can be executed from the script window or an OGS file.

http://www.originlab.com/www/support/resultstech.aspx?ID=1056&language=English&Version=7.5

http://www.originlab.com/index.aspx?s=9&pid=366

quote:
tried to put a macro in the script window, but nothing happened!
GetPts can be tricky. See this article...

http://www.originlab.com/index.aspx?s=9&pid=541


Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/09/2007 04:13:01 AM
Go to Top of Page

kanderlee

Taiwan
Posts

Posted - 10/09/2007 :  05:32:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
def autoexec { window -T Data Origin; };

I put the code into script window, and it worked fine.



def hello
{

loop (ii, 1, 3)

{ type ¡§$(ii). Hello World¡¨; };

};

I've put those code above in the script window and code builder, but both of them didn't work. Could you tell me what could cause this problem?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 10/09/2007 :  09:04:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
I've put those code above in the script window and code builder, but both of them didn't work. Could you tell me what could cause this problem?
The hello macro works fine for me, except for the fact that it contains special characters. Are you aware that when executing multiple-line code from the script window you must select all lines and press Enter as described in my first link above?

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/09/2007 09:06:16 AM
Go to Top of Page

kanderlee

Taiwan
Posts

Posted - 10/25/2007 :  12:58:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Heyhey...

Finally, I've successed to run the script after your guide. Thank you.

Kander Lee
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