09-04-2008 06:47 AM
I am using a SCB-68 to receive a pulse which I use as a trigger to take a snap shot from a Firewire Camera. What I want to do it also count the number of pulses received. I need this to plot a graph having a single value corresponding to each pulse so one idea was to count the number of pulses and give the pulse count and value as the X & Y of an XY-graph. Or is there any better way to solve the problem?
09-04-2008 07:07 AM - edited 09-04-2008 07:10 AM
Hello.
The SCB-68 is a connector block. It can't count pulses on its own. You have to connect it to a DAQ device.
e.g. a M-Series device from NI has two counters. You can configure one of them to count your pulses.
Hope this helps.
Uli
09-04-2008 08:21 AM
Hi,
Well, my SCB-68 is connected to a PCI-6221. I was able to do the counting using the onboard hardware counter. BUt I was alos interested in making a software counter. I would appreciate some help on that.
Atyab
09-04-2008 09:34 AM - edited 09-04-2008 09:44 AM
Hello Atyab,
if you want a A/B counter in software, look at the attached picture. This a counter I use in FPGA (I did not create it). You can put it in a while loop and replace the local variables with shift registers.
Source A and Source B are your digital lines from the encoder.

Hope this helps.
Uli
10-08-2008 03:16 AM