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
 Detection of Triggerjump in datasets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

JimThieser

10 Posts

Posted - 03/01/2021 :  3:15:49 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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...

YimingChen

1668 Posts

Posted - 03/02/2021 :  3:55:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - YimingChen on 03/02/2021 4:01:45 PM
Go to Top of Page

minimax

359 Posts

Posted - 03/02/2021 :  8:31:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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