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
 Origin C function

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
LabTalk user Posted - 09/15/2010 : 7:11:49 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3
Operating System: XP

Below is the Origin C function and the error message I am getting with it. Can anyone help?

#include <Origin.h>

////////////////////////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////////////////////
// Include your own header files here.

#include <string.h>
#include "C:\Program Files\OriginLab\Origin81\OriginC\System\data.h"
//#include "data.h"

////////////////////////////////////////////////////////////////////////////////////
// Start your functions here.

double maximum (string ds_name)
{
// Assumes ds_name exists and contains data
Dataset dsA(ds_name);
double dMax;
dMax = max(dsA);
return (dMax);
};
maximum (string ds_name)
{

Dataset dsA(ds_name);
double dMax;
dMax:name too long, must be less then 42 characters!
#Command Error!


Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 09/15/2010 : 10:06:25 PM
Hi,

Your code ends with };, right? The semicolon ; is not needed. I am not sure how you run this function, could you please provide more details about how you use this function? From the error message, maybe you are using some variable or constant that is more than 42 characters.

Penn

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