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
 Exit script when Peak Analysis (pa) command is exe
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Loksley

France
18 Posts

Posted - 03/29/2009 :  08:41:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. : OriginPro8 Sr4
Operating System: Xp Sp2

Hi everybody!
Id like to perform many Peak analysis.
But each time the Pa command exit the script at the end of the first loop.
Loop (ii, 2,n) //on the n columns of the first wks
{	
type -b "start loop $(ii)/$(n) ?";
pa iy:=([%H]Sheet1!1[87:107],[%H]Sheet1!$(ii)[87:107]) smode:=1 theme:=AsymPic3;
type -b " loop $(ii)/$(n) is now finished. Go on?";

};

When the script is executed, I get the first text box, then the first loop is executed and the script is stopped (exited). I dont even get the second message box.

Does anyone have any idea why and how to overcome this exit?

Loksley

France
18 Posts

Posted - 04/01/2009 :  6:53:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Laurie (http://www.originlab.com/forum/topic.asp?TOPIC_ID=7681)
I get the solution:

[Main]
Loop (ii, 2,n) //on the n columns of the first wks
{	
type -b "start loop $(ii)/$(n) ?";
run.section(, PeakA);
type -b " loop $(ii)/$(n) is now finished. Go on?";

};

[PeakA]
pa iy:=([%H]Sheet1!1[87:107],[%H]Sheet1!$(ii)[87:107]) smode:=1 theme:=AsymPic3;


Hopping this will help someone.
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