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
 Origin Forum
 Not ASCII #Command Error!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lillt91

Germany
14 Posts

Posted - 05/05/2018 :  06:38:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: Windows 8

Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System: Windows 8

Hi everyone, this is my code for a little script i wrote to handle my data. Sadly it wont work the way i want bc it crashes at the point "newbook;". Does anyone know how to fix it?

the error origin shows me:
"newbook
Not ascii
#Command Error!"

quote:
range strom = 2:9;
del wcol(32);
del strom;

wtranspose iw:=<active> ow:=<active>;

worksheet -s 0 1 0 1;
wks.SetAsLabel(C,-1,0,0);

col(1)=Data(1,22);

wcolwidth irng:=%H width:=7;

//deleting cols with empty data
ncols=wks.ncols;
for(ii=ncols;ii>=1;ii--)
{
if (mean(wcol($(ii))) == 848)
{
del col($(ii));
}
}

//add new book, activate book1 again 
newbook;
win -a Book1;
wks.name$ = Raw;

//interpolation
n=2;
for(ii=2; ii<=wks.ncols; ii++)
{
interp1xy iy:=[Book1]"Raw"!wcol($(ii)) method:=spline npts:=154 oy:=[Book2]"Sheet1"!wcol($(n));
n++;
}


Edited by - lillt91 on 05/05/2018 06:54:02 AM

YimingChen

1607 Posts

Posted - 05/07/2018 :  11:34:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I can't reproduce the issue. Would you mind sending your project to <tech@originlab.com> so that we double-check with your data? Thank you.

Yiming
-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