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
 External call execution error

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
adamleewiner Posted - 07/21/2008 : 12:42:01 PM
this is the script,sometimes it works,but most the time an error happened,printed in the command window is "External call execution error"and in the code builder:"C:\Program Files\OriginLab\Origin8\OriginC\OriginLab\EVENT_UTILS.C(2123) :Origin C Function Runtime Error, External call execution error";

please help!

win -a tc;//active the workbook named tc
maxrows=wks.maxrows;
set %h -b 0;
set %h -e 10;
loop (ii,3,17)
{%n=wks.col$(ii).name$;
interp1 ix:=%n_height iy:=(col(2),wcol(ii)) ox:=%n_a;
};

set %h -b 11;
set %h -e 19;
loop (ii,3,17)
{%n=wks.col$(ii).name$;
interp1 ix:=%n_height iy:=(col(2),wcol(ii)) ox:=%n_c;
};

set %h -b 20;
set %h -e 26;
loop (ii,3,17)
{%n=wks.col$(ii).name$;
interp1 ix:=%n_height iy:=(col(2),wcol(ii)) ox:=%n_b;
};

set %h -b 0;
set %h -e maxrows;
5   L A T E S T    R E P L I E S    (Newest First)
adamleewiner Posted - 07/25/2008 : 07:40:38 AM
thanks, Yang.
I will try that.
quote:
Originally posted by cpyang

Best to write script with range notation to use in xf like interp1.

%n_coname type of notation is not reliable.

CP




An USTCer always keep trying.
cpyang Posted - 07/23/2008 : 8:52:54 PM
Best to write script with range notation to use in xf like interp1.

%n_coname type of notation is not reliable.

CP
larry_lan Posted - 07/23/2008 : 05:43:33 AM
You'd better send your OPJ, or we cannot reproduce your problem.
adamleewiner Posted - 07/23/2008 : 04:44:48 AM
{%n=wks.col$(ii).name$; here %n contains the existing workbook name that is created based on the colume name of the acitve workbook.
i think there are no problems in the script lines because this script file runs smoothly sometimes.
a problem i found is some of the x-functions like interp1 or integ1 don't work well in the script files. ARE THERE ANY WAY TO SOLVE THE PORBELM
PS could i use the special execution syntex ";" before a xfuncton line as:
;interp1 ix:=%n_height iy:=(col(2),wcol(ii)) ox:=%n_c;
ADAM
лл

quote:
Originally posted by VincentLiu

Hi LEE,

We haven't seen your data, so we don't know what the problem exactly was. Your problem may come from the line "ix:=%n_height". In Origin, you can use "BookName_ColumnShortName" to represent the dataset. So %n needs to be a name of a workbook. You may modify the line "%n=wks.col$(ii).name$" to "%n = %H" to see if this can work.

If this can not solve your problem, please send your data or .opj file to tech@originlab.com. And please also paste the following linking in your email. http://www.originlab.com/forum/topic.asp?TOPIC_ID=7212.


Best regards,
Vincent
OriginLab Technical Services


VincentLiu Posted - 07/22/2008 : 10:58:41 PM
Hi LEE,

We haven't seen your data, so we don't know what the problem exactly was. Your problem may come from the line "ix:=%n_height". In Origin, you can use "BookName_ColumnShortName" to represent the dataset. So %n needs to be a name of a workbook. You may modify the line "%n=wks.col$(ii).name$" to "%n = %H" to see if this can work.

If this can not solve your problem, please send your data or .opj file to tech@originlab.com. And please also paste the following linking in your email. http://www.originlab.com/forum/topic.asp?TOPIC_ID=7212.


Best regards,
Vincent
OriginLab Technical Services

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