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
 Origin Forum
 RMS function from Old script window
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Alexei76

Czech Republic
4 Posts

Posted - 06/17/2015 :  10:45:45 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8 SR0 v8.0725 (B725)
Operating System: WIN7

I used to manipulate and process data in Origin (starting from Origin 6) from the Old Script Window
Scripts looked like
{%K=T50Hz1K; %L=C; %M=D; %N=BSiF; Offset = -1.4e-5;
%K_%N[ii]=%K_%N[ii-1]+(%K_%M[ii]-Offset)/(200*50*255e-6)};}
All that scripts work (I have saved several examples in .txt files), but if I want to use some different functions/commands, I do not see help/docs in internet or Origin. Everything looks different now in Origin help for LabTalk.
For example, how can I use rms function from the script window?
Suppose, I have an active worksheet "Book1", col(B)
If I write in the Script Window tt = rms(col(B)) and press enter, I would get "Error: RMS(Book1_B). LabTalk expression error: 1600"
If specify explicitly the worksheet:
tt = rms(Book1_B)
I would see the same error message.
QUESTION: how can I use correctly the "rms" function in the Old Script Window?

cdrozdowski111

USA
247 Posts

Posted - 06/17/2015 :  12:38:36 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Alexei,

First, please use Check for Updates in order to patch your Origin to the latest service release of version 8.0. Someone in the past reported a similar issue (http://www.originlab.com/forum/topic.asp?TOPIC_ID=6499) and updating to a later service release may help.

If you are still having a problem with the rms() function after updating, please check that column B is not defined as Text format.

Indeed Origin's documentation has changed in recent years. The most up to date LabTalk docs are available online at http://www.originlab.com/doc/LabTalk

You may wish to try the lastest version of Origin- Origin 2015. There have been several releases of Origin since version 8.0 was released and each has added many new features. A demo of Origin 2015 is available at:

http://originlab.com/demodownload.aspx

Cheers,
Chris
Go to Top of Page

Alexei76

Czech Republic
4 Posts

Posted - 06/18/2015 :  05:57:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Chris,

Thank you! I tried to install updates. For the first time I've got something like "can't perform rms on TEXT column" despite of the fact that the column was Numeric (I controlled that). After the second try no error messages but output was a missing value --. All other tries gave the same --
I looked for updates and there was the last update. I agreed. After that last update I am getting
1) for the first time - the error message "Unknown function: RMS(BOOK1_B)"
2) after that all further tries - no error message but output is a missing value --
Furthermore, after these updates the options "corrected Sum of squares" and "uncorrected Sum of squares" in the dialog for "Column statistics" dissapeared.
So after updates it is even worse than it was before

In Origin 9.2 it works correctly. I have the license for Origin 9.2 but did not want to install it, since my colleagues were very upset with it and most of them returned to using previous versions for work
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 06/18/2015 :  10:16:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Alexi,

Can you email your project file to Origin Tech Support at tech@originlab.com

Please reference this forum posting and include your Origin serial number.
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 06/18/2015 :  4:28:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
For future visitors to the post, the rms() function was added to LabTalk starting with Origin 8.1 SR2 and is therefore not available in earlier versions of Origin.
Go to Top of Page

Alexei76

Czech Republic
4 Posts

Posted - 06/19/2015 :  05:34:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Chris,
thanks, for Origin 6 I yesterday found the printed documentation and there was no rms() function. It's very inconvenient that help files for older Origins can not be displayed under Win7 and for Origin 8 it is not built in, but it instead opens the online version, where there is no information for which version a command/function is functional.
There is still a question why after updates of Origin 8 the option "sum of squares" dissapeared from the "statistics on columns".
I will install next week the Origin 9.2 to see what is the difference. But since there will be "C" support, I would better use it, not the Labtalk

Edited by - Alexei76 on 06/19/2015 05:34:36 AM
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 06/19/2015 :  12:54:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Alexi,

In Origin 8.0 SR6 and later, when I got to the Statistics menu and select Descriptive Statistics->Statistics on Columns, I see checkboxes to output Uncorrected Sum of Squares and Sum of Squares.

Perhaps you are looking in a another place?
Go to Top of Page

Alexei76

Czech Republic
4 Posts

Posted - 06/20/2015 :  06:53:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Chris,

yes, before updates (v8.0725) they were there, but after updates (v.8.0988) they dissapeared.
Below is the screenshot
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 06/22/2015 :  5:23:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Alexi,

Can you sent me an email at tech@originlab.com so we can open a support ticket on this?

Please reference this forum post.

Thanks,
Chris Drozdowski
Originlab Technical Support
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