I am unsure if what I am trying to do will work, though I feel that it should...
- I setup digital port to OUT direction and set value 0 - I am going to use use both DIO0 and DIO1
- I use set_trigger() with a pattern match of ABOVE 0 and MASK 3 so that the AIN is triggered when digital output DIO0 or DIO1 is HIGH. NOTE: I am using the DIO0 as an output.
- I setup background a_in_scan with EXTRIGGER option to capture 20000 data points.
- At this point I am ASSUMING a_in_scan() is waiting in the background for the pattern match on DIO0 / DIO1 values. I ASSUME the pulse I generate writes a high value to the port which triggers AIN.
- I perform d_out_scan() to generate a pulse waveform on DIO0 (verified on a scope as 50ms)
It seems the a_in_scan never triggers because when I call get_status(), its status is stuck as RUNNING.
Question
krbvroc1
I am unsure if what I am trying to do will work, though I feel that it should...
- I setup digital port to OUT direction and set value 0 - I am going to use use both DIO0 and DIO1
- I use set_trigger() with a pattern match of ABOVE 0 and MASK 3 so that the AIN is triggered when digital output DIO0 or DIO1 is HIGH. NOTE: I am using the DIO0 as an output.
- I setup background a_in_scan with EXTRIGGER option to capture 20000 data points.
- At this point I am ASSUMING a_in_scan() is waiting in the background for the pattern match on DIO0 / DIO1 values. I ASSUME the pulse I generate writes a high value to the port which triggers AIN.
- I perform d_out_scan() to generate a pulse waveform on DIO0 (verified on a scope as 50ms)
It seems the a_in_scan never triggers because when I call get_status(), its status is stuck as RUNNING.
Link to comment
Share on other sites
3 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