LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Statistics Express VI - help

Solved!
Go to solution

Under the help option in the statistica express VI this is given to explain the time between samples (dt) 

 

Time between samples (dt)

        —Bases the calculation on the time between samples in 

Signals

          My design is two micophones and one sound and finding the time delay between the two.

       

              Now does this mean it takes the difference from when one signal starts and the other starts
              (say when microphone 1 first picks up a signal and then microphone 2) 

           

                  Or does it show the time difference between the two signals ? 
                  (as in the delay between the samples)

               

                    I'll attach the VI's below to see it that helps makes sense
                0 Kudos
                Message 1 of 6
                (3,121 Views)

                This one should have values plugged in for you

                0 Kudos
                Message 2 of 6
                (3,114 Views)
                Solution
                Accepted by topic author SheepJust

                dt is the time spacing between sampled points. In your case, dt=0.001.

                 

                If you convert to plain 1D arrays, the sampling information is lost, meaning the cross correlation in in units of the array indices. Given dt, you can calculate the the spacing in seconds from the spacing in index units.

                 

                You can also set the dt of the x-axes of the graphs so the display is in seconds.

                Message 3 of 6
                (3,110 Views)

                so its the time between each sample, so mines 10,000 samples at a rate of 1000 samples a secound i set in my daq assistant 

                 

                so each sample the time for each one is 1 secound? 

                 

                but when i cross correrlate the x-axis says 20,000 and i end up with a reading of 10,012, so i minus the 10,000 for the number of samples and end up with 12. 

                 

                the time delay between the two signals is about 0.003 secounds in reality 

                 

                so 12 samples * 1 secound = 12 secounds? i feel i have gone wrong since they dont match up ? 

                 

                In short i wish to know how to change the gross correlation in units of the array indcies into secounds 

                0 Kudos
                Message 4 of 6
                (3,105 Views)

                The time for each sample is 1ms in your case. dt=0.001s

                0 Kudos
                Message 5 of 6
                (3,101 Views)

                That makes alot more sense. 

                 

                but still the reading from the cross correlation is 12 differentce between the 2, so 12ms .. which isant correct because the real delay is 3ms. I dont suppose you know why this is the case? if not no worries you've helped alot 🙂 

                0 Kudos
                Message 6 of 6
                (3,090 Views)