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
 error message...

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
Bigprophete Posted - 08/28/2015 : 03:10:50 AM
Hi !
I have a problem with my function (see below). When I run it, I have the follwoing error message... please help ^^

error message : LabTalk expression error: 31603

function:

function abscisse (double data, double range, double minValue) {
for( ii = 1 ; ii <= data ; ii++ )
{
Col(B)[ii]=minValue+(range/data)*(ii-1);
}
}
double data = %1; //First argument in function abscisse
double range = %2;
double minValue = %3;
4   L A T E S T    R E P L I E S    (Newest First)
Bigprophete Posted - 08/31/2015 : 04:30:24 AM
I have tried the code, it seems OK since no error message.
So thanks you very much Jason !

With best regards,

Mathias
jasonzhao Posted - 08/31/2015 : 01:39:06 AM
Hello,

I run the script in the script window:

function abscisse (double data, double range, double minValue){
for( ii = 1 ; ii <= data ; ii++ )
{
Col(B)[ii]=minValue+(range/data)*(ii-1);
}
}
abscisse(8912,200,250);


The result is shown in column B:




Best regards!
Jason
OriginLab Technical Service
Bigprophete Posted - 08/28/2015 : 10:50:53 PM
double data=1%; It just a number.
After to run the script, I just want to write for example the code: abscisse (8912, 200, 250) and the result is in column B.
jasonzhao Posted - 08/28/2015 : 05:33:44 AM
Hello,

What do you mean by writing:

double data = %1;

Does this sentence can replaced by:

double data = 0.01;


Best regards!
Jason
OriginLab Technical Service

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