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 for Programming
 LabTalk Forum
 Exit script when Peak Analysis (pa) command is exe

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
Loksley Posted - 03/29/2009 : 08:41:26 AM
Origin Ver. : OriginPro8 Sr4
Operating System: Xp Sp2

Hi everybody!
I’d 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 don’t even get the second message box.

Does anyone have any idea why and how to overcome this exit?
1   L A T E S T    R E P L I E S    (Newest First)
Loksley Posted - 04/01/2009 : 6:53:15 PM
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.

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