LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count 4th consecutive pulses from the analog output of the encoder

Hi

 

Iam getting analog output from the encoder and i want to count the 4th peak of the analog signal. Kindly suggest the best method Once 4th pulse is detected counter will increments.

 

Pl refer the encoder output .

 

Thanks

0 Kudos
Message 1 of 6
(2,456 Views)

What have you tried so far?

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 6
(2,454 Views)

Whatever you've counted using your logic, divide it by 4 and convert it to an integer (towards negative infinity)..!!
This should work.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 6
(2,446 Views)

Hi

I am doing the same but I need to increment the counter when the 4th peak of the pulse detected. This is analog output not digital.

0 Kudos
Message 4 of 6
(2,442 Views)

Keep a total count of all the peaks.  Use the quotient remainder function for dividing by 4.  Whenever the remainder =0, you know you have a 4th peak.  Then increment your "4th peak counter".

0 Kudos
Message 5 of 6
(2,434 Views)

HI All,

 

Thanks

 

This methos works.!!!!Smiley Happy

0 Kudos
Message 6 of 6
(2,413 Views)