LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to measure time difference between two continous encoder pulse (PULSE A & PULSE B)

im trying to figure out the time difference between two square wave pulse (PULSE A and PULSE B) from an encoder. I tried to modify many code but fail to capture thephase difference  for each pulse. the pulse only rise to 5V and fall to 0V like normal square wave pulse

 

can you and all of experts here help me out with this?

 

my problem

1) Encoder pulse are continous (pulse A and pulse B)

2) Square wave pulse have "0V" and "5V" please rapidly

 

if possible someone show me correct method , Im using LABVIEW 7.1 and Hardware NI SCOPE (PCI 5102)

 

your advice are highly appreciated

 

among my idea as in attachment , but I failed to get it

0 Kudos
Message 1 of 3
(3,146 Views)

Hi Amirul,

 

Check the attached JPG file. i think this will be use full to you

 

Regards,

Santhosh M1.JPG

0 Kudos
Message 2 of 3
(3,113 Views)

thanks for your help , I want to ask, the X-axis is in sample unit? but i am currently need to measure the time duration for hte new pulse..Smiley Surprised

0 Kudos
Message 3 of 3
(3,099 Views)