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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 v. 6.1 Labtalk script not working on v. 7.0 pro

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
blank_name Posted - 02/05/2003 : 4:47:21 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 02/05/2003 : 11:52:24 PM
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
blank_name Posted - 02/05/2003 : 11:06:43 PM
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;
}
}
Mike Buess Posted - 02/05/2003 : 8:25:23 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000