in a python program, I would like to trigger on a threshold value. Assuming I am using the 12 first bits, dio 0 to 11, I would like to trigger as soon as I have a value greater than a value between 0 to 4095 = (1<<12)-1.
I tried dwf.FDwfDigitalInTriggerSet(hdwf, c_int(threshold), c_int(4095), c_int(4095), c_int(0)), but it is not working.
Question
Loic VINET
Hello
I am using a digital discovery device.
in a python program, I would like to trigger on a threshold value. Assuming I am using the 12 first bits, dio 0 to 11, I would like to trigger as soon as I have a value greater than a value between 0 to 4095 = (1<<12)-1.
I tried dwf.FDwfDigitalInTriggerSet(hdwf, c_int(threshold), c_int(4095), c_int(4095), c_int(0)), but it is not working.
First, is it possible to trigger on threshold?
Second, how should I do it?
Thank you
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now