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
 Variable assigning in LabTalk

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
Timmi_N Posted - 12/08/2004 : 08:33:49 AM
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
4   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 12/13/2004 : 2:48:31 PM
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
Timmi_N Posted - 12/13/2004 : 11:34:55 AM
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
Mike Buess Posted - 12/09/2004 : 3:32:16 PM
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
Timmi_N Posted - 12/09/2004 : 2:12:33 PM
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?

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