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
 Forum for Origin C
 linking layers in origin 7.0
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

5*10

Germany
Posts

Posted - 10/20/2006 :  04:00:08 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): >Origin 7G SR4
Operating System: winXP

Hi,
I have programm a c-routine in OriginC on Origin 7.5Pro and use the link objact as follows.

if (iLayer>= 5)
{
layAktuell.Link.LinkTo.nVal = 4;
layAktuell.Link.YAxisLink.nVal = 1;
};

I try to compile this in OriginC on Origin 7.0 and it doesn´t work. The following message was posted:

C:\Programme\OriginLab\Origin7G\TOFDatenMovie\050914_curve_integrate.c(134) :Fehler, Datenmember nicht gefunden:Link
C:\Programme\OriginLab\Origin7G\TOFDatenMovie\050914_curve_integrate.c(382) :Fehler, Variable "layAktuell.Link.LinkTo.nVal" ist nicht deklariert

Obviously is LINK in originC 7.0 not defined. Is there another possibility to link the x and y axis one after another. The solution using templates is not possible, because every layer is created step by step.

Greets 5*10

Deanna

China
Posts

Posted - 10/20/2006 :  05:57:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi. I think we can use Labtalk.

I guess layAktuell is a graph layer, right? If so, we can change the code like this:

if (iLayer>= 5)
{
layAktuell.LT_execute("LAYER.LINK = 4"); //link the layer to Layer 4
layAktuell.LT_execute("LAYER.Y.LINK = 1"); //One-to-one link
layAktuell.LT_execute("layer.Y.from = layer1.y.from");
};


Hope this will help :)

Deanna
OriginLab Technical Services
Go to Top of Page

5*10

Germany
Posts

Posted - 10/20/2006 :  07:01:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
this works verry well.
Thank you for this good answer.

Greets 5*10

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