Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

I need two counters to stop counting simultaneously

I need to start and stop two counters simultaneously. I also need to get the exact count from the second counter, when the first counter hits a count of 100000. I am using 2 encoders, and I have the counters set up for X1 position measurement. I am programming this in Visual Basic using Measurement Studio.
0 Kudos
Message 1 of 3
(3,463 Views)
Hi,

You need to tie up the gates of the counters to the same signal. In this way, both counters will stop at the same time. Also, you can set your terminal count to 100000 -- the counter will generate a pulse once the count reaches 100k. You can use this pulse to toggle the gates signal.

Regards,
RamziH.
0 Kudos
Message 2 of 3
(3,463 Views)
"I have a motor that is driving two encoders.

These encoders currently have the same pulses, but that could change at a later date.


I have the motor spinning at anywhere from 500 to 1000 RPM�s. The norm is 833 RPM�s. These encoder signals are going into the counter. I need to display two text boxes with incrementing values to the user. Encoder 1 is the master encoder. Encoder 2 is the slave encoder.


I need both encoders to start counting simultaneously. When Encoder 1 (Master) reaches a count of 100000, I need to get the exact count at that time from Encoder 2(Slave).


Since the resolution of these encoders are both the same, 4096 count, both should display 100000 at the same time. Currently in my program, the slave encoder never d
isplays the same count as the master. It always exceeds it by at least 400 counts.


Some Visual Basic code and a possible solution with this would be greatly appreciated. I thank you very much in advance of your hard research into my dilemma.


I am emailing you from my home email address. If possible could you respond back to this address: stephsotos@earthlink.net. If that is not possible, my work email address is ssotos@dancon.com."
0 Kudos
Message 3 of 3
(3,463 Views)