Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Interrupts using the PCI-6036E

I will like my PCI 6036E to generate a hardware interrupt each time a pulse or logic 1 is read on one of the digital input channels. I need to compute velocity from the encoder pulses connected to digital channels 0 and 1.

Can this be done?

Thanks in advance.

Knji
0 Kudos
Message 1 of 4
(3,565 Views)
After browsing through the C Function manual, I found out a counter will do for my purposes. Basically, I want to use the counter available on the PCI-6036E to counter encoder pulses.

Does anyone have any pointers on how I go about doing this?

TIA

knji
0 Kudos
Message 2 of 4
(3,548 Views)
Knji,
Counters are definitely the means to accomplish your task. There are two 24-bit counters on the PCI-6036E. If you just want to count pulses, you will want to use a simple event counter example. There are also examples that measure frequency, period and pulse width. If you have the NI-DAQ driver installed these examples will be included with LabVIEW or LabWindows/CVI, and you can browse or search for them at Help>>Find Examples. If you want C/C++/VB examples, you can find them in the following directory:
C:\Program Files\National Instruments\NI-DAQ\Examples
Hope this info helps!
-Alan A.
0 Kudos
Message 3 of 4
(3,542 Views)
Thank you Alan.

Klaus
0 Kudos
Message 4 of 4
(3,537 Views)