02-23-2007 08:32 AM
02-23-2007 09:15 AM
Yes, you can use one of your board's counters to generate a "Retriggerable Single Pulse." The delay time range you need (10 - 70000 usec) is within the capabilities of your E-series board.
Here's a posting with an example using DAQmx.
-Kevin P.
02-23-2007 10:14 AM
02-23-2007 10:34 AM
"Duty Cycle" refers to the fraction of a pulse period during which the pulse is in the "active" state, typically "high." Duty Cycle = High time / (High time + Low time).
For your app, it'll make more sense to select a different instance of DAQmx Create Channel from it's drop-down menu. You'll want the one where you define pulses with high and low times instead of with freq and duty cycle. Similarly, you'd want the high and low time version of the DAQmx Write function when you change the delay time.
I don't have time to give you a full intro to counter functions, but there's a lot of info on this site and you can learn a lot by investigating the shipping examples. One last tip though: yes you can precisely control the delay time from the active edge (programmable to allow you to choose either rising or falling edge as "active") of the input pulse until the leading edge (can be programmed with "Idle State" setting so that the leading edge can be either rising or falling) of the output pulse. You can also specify the duration of the output pulse very precisely. But you won't be able to tell the hardware to *match* the duration of the input pulse if it varies.
-Kevin P.
02-23-2007 12:12 PM
02-26-2007 06:27 AM