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
 Force Output in script (hold calculation)

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
JokerOne Posted - 03/24/2016 : 04:53:23 AM
Origin Ver. 9.1 and Service Release 1(Select Help-->About Origin):
Operating System: Win 7

Hello everybody,

I am doing some lengthy calculation and output stuff in a loop.
I would like to force Origin to force the output end the end of a loop run, however it appears to me, that the script with try run through completely and then outputs all the results at once.
This however make Oringin appear to be crashed (greyed out/"no responds").
The script works, if I force a stop by:
type -b "Stop"
Now, but then I will have to click "ok" from time to time.

Is there a more suitable way?

for ii = 1:100
{
// do lengthy caculation
// plot output, do some graph, give some output by type, etc..
// FORCE ORIGIN TO !NOW! SHOW THE GRAPH AND OUTPUT BY TYPE //CORRESPONDING TO "ii"

// type -b "stop" somehow does the trick but requires a click in each loop run
}

1   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 03/24/2016 : 06:01:11 AM
Hi,

You may try our second function which can pause for few seconds then continue the operation:


for (ii=2; ii<=5; ii++)
{
plotxy $(ii) plot:=201;
sec -p 3; // Pause for 3 seconds and continue
win -a Book1;
}


A reference can be found below:

http://www.originlab.com/doc/LabTalk/ref/Second-cmd

Regards!

Sean

OriginLab Tech.


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