Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PCIe-6602 measure edge separation between two square waves

Hi,

 

I get these values when i measure at 40 MHz external timebase source for a two edge separation of 10 ms. I get the correct values when i measure at 10MHz? Is there any factor i need to multiple the count? in order to get the correct value?

 

Count                                                              milli seconds

199999000.00000000000000000000 4.99997500000000000000
199999000.00000000000000000000 4.99997500000000000000
199999000.00000000000000000000 4.99997500000000000000
199999000.00000000000000000000 4.99997500000000000000
199999000.00000000000000000000 4.99997500000000000000

 

Thanks

0 Kudos
Message 11 of 12
(2,680 Views)

Hello GPS_user,

 

Let’s try to take out variables from the equation. Can you try the Meas2EdgeSeparation to read the pulses along with the GenDigPulse to generate a single pulse? For the Meas2EdgeSeparation, set the first and second terminal to be the same PFI line, the first terminal should be rising and the second one falling. Read from the Internal counter (see my post # 5) that you are going to generate a pulse . For the GenDigPulseTrain, set the Frequency to 500 and the Duty Cycle to 0.5. This will get you a 10 ms pulse width that you can read from.

 

For now, let’s try with just one signal and not specifying what our external timebase is in order to find where the root problem is.

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 12 of 12
(2,657 Views)