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
 Programs only run once...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bigfootnj

USA
Posts

Posted - 06/22/2004 :  6:48:43 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have encountered a strange occurance in Origin 7.0. I can run my LabTalk programs successfully only once. On the second attempt of the exact same program, a command error occurs. I have to close Origin and then open it again. This has happened with several different programs, even when all the open windows were closed between runs. Is there some command needed to free up memory or global variable names? What might cause this?

easwar

USA
1965 Posts

Posted - 06/22/2004 :  8:59:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

When you say program, I presume you are refering to script (.OGS) files (or sections in OGS files)? Does this occur with any OGS file? Or does it occur only in certain type of files where you are doing the same type of computation?

Could you post more details, such as one typical code segment that fails?

Easwar
OriginLab

Go to Top of Page

bigfootnj

USA
Posts

Posted - 06/23/2004 :  11:45:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have found that some sections that fail to run access a specific worksheet name. For example, a program that contains:

window -t wks template Temp6;
...
window -c Temp;

wil not run the second time, even though the window has been closed. Does the -c command hide and not delete a worksheet?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/23/2004 :  12:23:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Does the -c command hide and not delete a worksheet?
No, there's a separate command (win -ch) for that. Although you've closed the worksheet window with win -c Temp its datasets Temp_A, Temp_B, etc still remain. (You can confirm that by entering "list s" in the script window.) This will interfere with your next win -t command. To close a worksheet and its datasets used win -cd...

win -cd Temp;

Mike Buess
Origin WebRing Member
Go to Top of Page

bigfootnj

USA
Posts

Posted - 06/23/2004 :  12:46:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks! That fixed it!
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