Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple counter pulse width measurement problem

Using the NI USB-6211 I am connected to a FEEL Elec waveform generator. The signal is teed. On one connection the signal from BNC goes pin 2 of the DAQ (ctr0 gate) and ground to pin 5 on the DAQ. The other side of the tee goes to a Tektronix scope. I have the wave form generator making a rectangle wave at 50Khz frequency, with 50% duty cycle, 3 V amplitude, -2 V offset, 0 phase. The Tektronix scope shows a very nice square wave with pulse width of 10.1 us.

 

I compiled the "Measure Pulse Width" C# sample code using Visual Studio 2022. I know I had this working previously and was able to read a pulse width as small as 3us, but in trying to duplicate the setup a month later, the call to BeginReadingSingleSampleDouble always times out. I tried hooking the signal to both pins 2 and 3 (ctr0 gate) and (ctr1 gate) and got the same result. It's hard to believe that both counters have failed on the DAQ.

 

Any and all suggestions greatly appreciated.

0 Kudos
Message 1 of 1
(92 Views)