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
 Detection of Triggerjump in datasets

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
JimThieser Posted - 03/01/2021 : 3:15:49 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

I together,
I am working with large datasets (600000 rows). Here i have a period trigger signal between 0 and 5.
Is there any function to detect the jumps quickly and get me the rownumber as out put?

I am working right now with an easy loop and compare two cells...
but that takes ages....

Thanks...
2   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 03/02/2021 : 8:31:57 PM
Hi JimThieser,

Does your signal contain pure 0 and 5 numbers? Or there is some noise?

Would you mind to check if you can send us a sample file so that we can check further?

You can click the "Send File to Tech support" link text on the top right corner to send the file.

Max
OriginLab Technical Support
YimingChen Posted - 03/02/2021 : 3:55:50 PM
Can you try using Python script in Origin worksheet Set Column Value dialog, see the example below to detect the rising point of the signal.

import numpy as np
def get_trigger(ll):
    ll = np.array(ll)
    result = np.where(np.diff(ll) > 3)
    return result[0].astype(float)+2




James

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