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
 Forum for Origin C
 linking layers in origin 7.0

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
5*10 Posted - 10/20/2006 : 04:00:08 AM
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

2   L A T E S T    R E P L I E S    (Newest First)
5*10 Posted - 10/20/2006 : 07:01:19 AM
Hi,
this works verry well.
Thank you for this good answer.

Greets 5*10

Deanna Posted - 10/20/2006 : 05:57:59 AM
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

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