LeonelP Posted March 7, 2023 Share Posted March 7, 2023 Hello, I been trying to add a delay for a sync trigger and haven't found a method that does that, what am I missing? This is the configuration I'm using: FDwfDigitalInAcquisitionModeSet(hdwf, acqmodeRecord); // .-1 sync mode FDwfDigitalInDividerSet(hdwf, -1); // 16bit per sample format FDwfDigitalInSampleFormatSet(hdwf, 16); // number of samples after trigger 0 for continuous stream FDwfDigitalInTriggerPositionSet(hdwf, 0); FDwfDigitalInTriggerSourceSet(hdwf, trigsrcDetectorDigitalIn); // trigger detector mask: low & hight & ( rising | falling ) FDwfDigitalInTriggerSet(hdwf, 0, 0, 0, (1 << 1) | (1 << 4)); How can I add a 5us delay to that falling trigger? Regards. Link to comment Share on other sites More sharing options...
1 attila Posted March 8, 2023 Share Posted March 8, 2023 Hi @LeonelP To have sampling delay after dio1 or dio4 falling edge use the following: FDwfDigitalInTriggerCountSet(hdwf, 1, 1) // count 1 and restart FDwfDigitalInTriggerLengthSet(hdwf, sec, 0, 0) // delay in seconds LeonelP 1 Link to comment Share on other sites More sharing options...
Question
LeonelP
Hello, I been trying to add a delay for a sync trigger and haven't found a method that does that, what am I missing?
This is the configuration I'm using:
How can I add a 5us delay to that falling trigger?
Regards.
Link to comment
Share on other sites
1 answer 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