ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

simultaneous counter output input

Hello,

 

I am working with a light detection device called and Avalance Photo Diode, which emits a single TTL pulse for every photon detected. A gate signal sets the frequency that the photon count is reported. I am trying to write a program that--via an M-series USB-6229--simultaneously sets the gate frequency of the APD's gate and counts the device's output pulses.

 

My plan was/is to use one of the counters to generate a continuous pulse train for the gate signal (~1K Hz), and the second counter to count the rising edges emitted. However, my current program quickly falls on it's face; and I am having trouble understanding the error messages.

 

If someone could look over my program and offer advice, it would be greatly appreciated.

 

Thanks,

 

Ryan

 

0 Kudos
Message 1 of 2
(2,993 Views)

Hi smosit,

 

What error messages / codes are you experiencing?  This may help the troubleshooting.  Thanks.

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 2 of 2
(2,976 Views)