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
 v. 6.1 Labtalk script not working on v. 7.0 pro
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blank_name

Brazil
10 Posts

Posted - 02/05/2003 :  4:47:21 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Does anybody know if a script running well in Origin v. 6.1 should be fixed/modified to run in v. 7.0 pro? It is crashing the new version of the application. That script imports .csv ASCII files and do some arrangements. It seems to be concerned to file size. Same script works in version 7.0 pro with very small files.
Thanks in advance.
Ricardo Carneiro
<sebastiao.carneiro@terceiros.embraer.com.br> or <ricardocarneiro@directnet.com.br>

Edited by - on 02/05/2003 4:50:59 PM

Mike Buess

USA
3037 Posts

Posted - 02/05/2003 :  8:25:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ricardo,

I've run across nothing that works in Origin 6.1 but not in Origin 7.0. Why don't you show us the script?

Mike Buess
Origin WebRing Member
Go to Top of Page

blank_name

Brazil
10 Posts

Posted - 02/05/2003 :  11:06:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ok, Mike. Here you are:

fdlog.ShowComment=0;
fdlog.UseGroup(Ascii);

fdlog.UseType(CSV);
if(fdlog.MultiOpen()!=0/0)
{
loop(ii,1,fdlog.MultiOpen.Count)
{
win -t data Origin;
FDlog.Get(A, ii);
open -w %A;
NumberC=%(%H,@#);

tty = 999;
loop(var,1,NumberC)
{
tty = tty+1;
%p=wks.col$(var).label$;
%r = A$(tty);
wks.col$(var).name$=%r;
%p=%[%p,>'\'];
%p=%[%p,>'\'];
%q=%[%p,'\'];
%p=%[%p,>'\'];
%p=%[%p,>'\'];
%s=%q - %p;
type %r %q %p;
wks.col$(var).label$=%s;
worksheet -t $(var) 1
}
wks.addcol (Time);
Get %H_A1000 -e Aux01;
loop(num,1,Aux01)
{
Aux02 = (num-1)*.0125;
%H_time[$(num)]=$(Aux02);
}
worksheet -t $(var) 4;
wks.colsel($(var),1);
menu -e 38769;
}
}
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 02/05/2003 :  11:52:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin's menu IDs can change from version to version, so you should check the ID in the last menu command. Other than that I don't see anything that's obviously wrong. Have you tried debugging it in Codebuilder? Another thing you can do is open the script window and enter echo=1 so error messages are printed to the script window. Then try the script on one or more of the small files that don't crash Origin and look for error messages.

But I'd check the menu ID before I tried anything else.

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