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
 Variable assigning in LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Timmi_N

Germany
Posts

Posted - 12/08/2004 :  08:33:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.0
Operating System: Windows on i386

Dear Users of the Forum,

Im new here, and due to the lack of a subject, the website deleted by POSTDATA before sending it. So I write again, but shorter:

I draw a measurement graph, where I find two X-values for given Y-values. Now I need their "delta". I can draw vertical lines at given x-values, but I don't succeed in drawing them at the positions of my "found-out" x-values. Do I have to assign them somehow?
How can I achieve to know these values, to subtract one of the other and to print them into a box into the graph?


I find out these values with this short script:

xaty01 = table( %c, xof(%c), 0.1 );
xaty09 = table( %c, xof(%c), 0.9 );
ixaty01 = xindex( xaty01, %c );
ixaty09 = xindex( xaty09, %c );
mks1 = ixaty01;
mks2 = ixaty09;

I found it on the forum. But the following command doesn't work:

draw -lm -v ixaty01;


Many many thanks in advance,


Timmi_N

Timmi_N

Germany
Posts

Posted - 12/09/2004 :  2:12:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
O.K., I found out that

A=[value];


assigns a value and that

A=;

types it out.

But why can't I assign a "found out" value like this, subtract it and plot a line there?
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 12/09/2004 :  3:32:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Timmi_N,

The draw -l -v command takes an x-value as an argument, not an index. Try this...

draw -l -v xaty01;

I wasn't aware of the -lm option but it seems to work too.

Mike Buess
Origin WebRing Member
Go to Top of Page

Timmi_N

Germany
Posts

Posted - 12/13/2004 :  11:34:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Mike!


Thanks a lot, your tip has exactly solved my problem. I didn' understand that the "i" in front of the variable name means the use of an "index", neither I found anything about in the help.


Bye,

Tim
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 12/13/2004 :  2:48:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Tim,
quote:
I didn' understand that the "i" in front of the variable name means the use of an "index", neither I found anything about in the help.
It has nothing to do with the variable name. The xindex command returns a row number so you've defined ixaty01 as an index.

Mike Buess
Origin WebRing Member
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