Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger on both edges with PCI6601 in BUFFERED_POSITION_MSR Mode

Hello,

I need to save encoder Positions in a Buffer.
I must trigger this buffer on both edges.

I use the function ND_BUFFERED_POSITION_MSR on a 6601 Card with X4 Encoder.

It works with triggering only on fallling or rising edge, but i don't now how i can implement it with both edge.

My Programm use the same function as described in the VB Example TIOquadEncoderBuffPosMeasure

Thanks for helping and sorry for my bad english

Remco
0 Kudos
Message 1 of 4
(4,206 Views)
Hello;

Unfortunately, the way the position measurement works with quadrature encoder is, that the value of the position will be buffered at each active edge of the gate signal. And, the active edge of the gate signal is either rising or falling, and can't be configured to be both rising and falling edges.
Regards.
Filipe
0 Kudos
Message 2 of 4
(4,206 Views)
Thanks for the Answer,
So i must make a workaround...
my idee is tho use counter_0 and counter_1 that are connected to the same encoder. trigger counter_0 with rising and counter_1 with falling edges.
But now i have the next problem: the Application give me the error " No DMA channel aviable" after i start the second counter.
Is it not possible to use 2 Counters for at the same time??

the other idea is to generate a single pulse that is triggered on both edge and trigger the counter with this pulse. is this possible?

Thank for helping.

Remco
0 Kudos
Message 3 of 4
(4,206 Views)

Check this out

Archived: Why Am I Receiving Error -200251: "No DMA Channels or USB Bulk Endpoints Are Available" When Using Multiple Counters?

http://digital.ni.com/public.nsf/websearch/6503B2EFA2CB867186257219007DB643?OpenDocument

0 Kudos
Message 4 of 4
(3,553 Views)