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
 Problem running script twice in one project
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

woodster

UK
Posts

Posted - 06/17/2014 :  08:08:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: 9.1.0 (32-bit) Sr1 b237
Operating System: Windows 7 64 bit

I have a script which runs hilbert transforms on a load of data files, does some calculations and plots the resultant data. This all seems to work fine, and I have assigned it to a custom button.

After running the code, once everything has completed I want to move to a new folder, change the files to be imported, and run it again. However, I just get the following error message:

Failed to resolve range string, VarName = book, VarValue = <active>

It seems like perhaps my variables are getting confused. Is there a way to reset everything upon each run of the code? I'm pretty new to this, so sorry if this is a silly question. Although I have found similar errors on the forum, none of the suggested solutions seems relevant.

Thanks

lkb0221

China
497 Posts

Posted - 06/23/2014 :  5:49:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi,

You can try using delete command at the end of your script to clean up all the remaining variables.
http://www.originlab.com/doc/LabTalk/ref/Delete-cmd

Zheng
OriginLab
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