10-22-2006 12:34 PM
10-23-2006 08:02 AM
Big Guy,
Actually, you pretty much have to BOTH delay the pulse AND change the pulse width.
Scenario 1: There really isn't any counter functionality available to take in an input pulse and then generate an output pulse where BOTH leading and trailing edges are delayed by some specified amount. It's simple enough to delay the leading edge, but you'd need to define the output pulse width as a fixed constant, independent of the input pulse's width. I only know LabVIEW so I don't have any info on VB calls. Search for terms like "retriggerable single pulse."
Scenario 2: In programming this output pulse width, there will also need to be some delay. It can be very small (<= 0.1 microsec), but can't be "0"
By default, the appropriate pin to use for the input pulse would be one of the counters' Gate inputs. Note: if you'd like to use this delayed pulse like an encoder z-index signal, you might have trouble because it won't be sync'ed to the A,B phases.
-Kevin P.