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
 Script window echoes all commands
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

andreas1

Germany
12 Posts

Posted - 03/19/2002 :  07:58:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

suddenly the script window started echoing all executed commands. For example when closing a project it echoes all Origin labtalk commands executed. Or when I execute a script using run.section it echoes all executed script lines.

Any ideas how to turn that off (and on again in case I ever want to see what origin does) ?

Thanks,

Andreas

H.Steen

Norway
12 Posts

Posted - 03/19/2002 :  08:58:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The system variable ECHO controls this. From the Origin help system (ver 6.1) I have copied the following text (searched index using 'echo') :

"You can change the value of the echo variable to instruct Origin to echo different types of scripts to the Script window. For example, you can set echo=1 to show any script that generates an error, or set echo=7 to display all scripts that are executed. During normal operation, echo=0."

To change the echo variable open the script window and and just type

Echo=7 (enter)

((enter) means press the enter-key) and the value is set, or you can change it during a script so you can see only the part of the code you like.


Helge






Edited by - H.Steen on 03/19/2002 09:04:15

Edited by - H.Steen on 03/19/2002 09:04:48
Go to Top of Page

andreas1

Germany
12 Posts

Posted - 03/20/2002 :  09:58:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the hint. Unfortunately typing echo=0 in the script window does not help.

The echoing just starts at some point in time by itself (without me knowingly telling it to do so) and then does not want to go away.

Any further ideas ?

Thanks,

Andreas

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/20/2002 :  12:50:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Andreas,

I'd start by opening the script files that are in use when this happens in a text editor and searching for the word "echo". (CodeBuilder works great for searching if you have Origin 7.0.) Perhaps you used the word in a comment and the comment identifer was removed by mistake. Or maybe you used echo as a variable name.

If nothing surfaces along that line I'd look closely for labtalk command statements that don't end with a semicolon. Missing semicolons can often produce unpredictable results.

If the reason is still not apparent and you're scripts are relatively short, you can post or provide a link to them here and maybe one of us will spot the problem.

Mike Buess
Origin WebRing Member
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