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
 Force Output in script (hold calculation)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JokerOne

Germany
58 Posts

Posted - 03/24/2016 :  04:53:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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
}

SeanMao

China
288 Posts

Posted - 03/24/2016 :  06:01:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

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