T O P I C R E V I E W |
vertez |
Posted - 12/12/2012 : 09:48:26 AM Origin 9 64 bit, Windows 7 Ultimate
Hi, I have a problem with the size of the script. I've just created very big script in labtalk. It is work only in pieces. I didn't know that the script window was limited. The script stop working when it went to final line.I figured out that If I couldn't make it works as it should be I divided it for small parts and used something like that: run c:\folder\second part.ogs. I thought it would help to resolve my problem but unfortunately it didn't work. The problem isn't a path. I don't know what's going on. Script crashed anyway. The Script works only separately. How to make it work? |
2 L A T E S T R E P L I E S (Newest First) |
vertez |
Posted - 12/17/2012 : 5:39:16 PM Finally, everything works perfectly. Thanks Greg |
greg |
Posted - 12/17/2012 : 3:40:36 PM There are limits to the size of script between { and } or selected for running in a Script Window. See http://www.originlab.com/www/support/resultstech.aspx?ID=163&language=English&Version=All
As your script gets large, you should move them to external OGS files saved in your User Files Folder. These are text files broken into sections with [SectionName] much like INI files. You can call a section of an OGS with run.section(FileName, SectionName); If the section exists in the same file, you can omit FileName: run.section(,SectionName); An external OGS has the added advantage of being loadable in Code Builder along with ability to add break points and debug. |
|
|