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
 $smooth -- what is this?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

asteria

USA
Posts

Posted - 03/29/2010 :  6:11:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. Origin 7.5 SR6
Operating System: XP

When I checked some of the labtalk scripts, I found sth like "$Smooth".
What does the $ sign mean? What is it used for?

Penn

China
644 Posts

Posted - 03/30/2010 :  03:28:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

$ sign is one kind of substitutions in LabTalk. You can refer to this page for more information. Please note that this page is for the latest version, Origin 8.1, and some features do not exist in Origin 7.5. If you are interested, you can download a demo and have a try.


Penn
OriginLab Technical Services
Go to Top of Page

asteria

USA
Posts

Posted - 03/30/2010 :  05:28:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I read the wiki and it seems still unclear to me.
This line is from Smooth.ogs in origin files.

%K=$Smooth.Order9;

Does the $ sign in front of Smooth mean something special or substitution?
Go to Top of Page

greg

USA
1378 Posts

Posted - 03/30/2010 :  10:42:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The notation with leading $ and no following parentheses is indeed special and it means to

$ = Look in the ORIGIN.OMG file
Smooth = In the [Smooth] Section
Order9 = And return the string value of the Order9 keyword

So %K = $Smooth.Order9
assigns
First Second Third Fourth Fifth Sixth Seventh Eighth Ninth
to %K.

Edited by - greg on 03/30/2010 1:57:19 PM
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