Hi William,

For counting pulses you need to specify how long you want to count
pulses. After that time expires, you read the count value from the
counter and then reset the counter value back to zero. The counter
will start counting right away from there on. To determine when you
need to read the count value, you usually use a 1 kHz reference clock
(internal in the device), and use one counter to let it count to a
value you like (i.e. 1000 for 1 second), then output that 1 second
pulse on one of the outputs and route (wire with real wire) it to a
gate. You read the gate in software, and when it toggles, you read the
counter. You know that exactly the time you specified has passed and
you can divide the number of pulses by the amount of time.
A good example and how to configure this is on the developer zone:
<a
href="http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EBA556A4E034080020E74861&p_node=174404&p_submitted=&p_rank=&p_answer=&p_source=External";>
example program counter</a>
<a
href="http://zone.ni.com/devzone/devzone.nsf/webcategories/AE11159DA289FB0686256B260005DBCF";>configuration
information on developer zone</a>

Reply via email to