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
Forum for Origin C
How can I pick the low marks?
New Topic
Reply to Topic
Printer Friendly
Author
Topic
dcuser
Germany
Posts
Posted - 07/29/2004 : 09:35:17 AM
Hallo all,
I have written some code that helps me to pick up the peaks in my
sine-like curve. The code looks like this:
LT_execute("curve.reset()");
LT_execute("%W = %[%C,'_']");
LT_execute("%W!wks.addcol(PkIndex1)");
LT_execute("%W!wks.addcol(Pkx1)");
LT_execute("%W!wks.col$(%W!wks.ncols).type = 4");
LT_execute("%W!wks.addcol(Pky1)");
LT_execute("curve.data$ = %C");
LT_execute("curve.peakIndex$ = %W_PkIndex1");
LT_execute("curve.pickPeaks.rectHeight = 0.025");
LT_execute("curve.pickPeaks.rectWidth = 0.05");
LT_execute("curve.pickPeaks.minHeight = 0.10");
LT_execute("curve.pickPeaks(1)");
LT_execute("get %W_PkIndex1 -e end");
LT_execute("for ( ii = 1; ii <= end; ii += 1) { %B = curve.data$; index = %W_pkindex1[ii]; %W_Pkx1[ii] = xvalue(index,%B); %W_Pky1[ii] = %B[index];}");
And it works really fine. But now I want/need to pick up the low marks in this curve.
Is there anybody around who could help me?
many thanks,
opasen
Mike Buess
USA
3037 Posts
Posted - 08/02/2004 : 8:12:41 PM
Have you tried inverting your curve (multiply by -1) and picking peaks again?
Mike Buess
Origin WebRing
Member
Edited by - Mike Buess on 08/02/2004 8:18:24 PM
dcuser
Germany
Posts
Posted - 08/03/2004 : 09:56:42 AM
Hello Mike,
many thanks for your hint! It works now ;))...
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000