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 for Programming
 LabTalk Forum
 Origin C function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LabTalk user

USA
35 Posts

Posted - 09/15/2010 :  7:11:49 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

Penn

China
644 Posts

Posted - 09/15/2010 :  10:06:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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