LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquisition Above Threshold

Solved!
Go to solution

Hello,

 

I started with LabVIEW a few days ago and find it quite difficult. Hope that you can help me a bit.

 

My task is: 2 channels (from acoustic sensors), I need to find time delay of arrival between them and then compute the coordinates of a source that emits acoustic waves. So, I considered multiple examples that I managed to find and I am finally stuck at the very beginning. 

 

I need to work with signals (impulses) that are higher than a specific threshold, but how can I do that? Do I need to use Threshold Detector.vi or not? 

 

Then I need to find time delay of arrival. Should I use CrossCorrelation.vi

 

Thanks a lot.

 

Channel 1.jpg

0 Kudos
Message 1 of 7
(2,602 Views)

What do the data waveforms actually look like?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(2,593 Views)

Something like this. So it means that the system should ignore noise and start to acquire signal when its amplitude reaches a specific threshold.

 

Figure 2 Intro.jpg

0 Kudos
Message 3 of 7
(2,585 Views)

I think I would use the threshold function in LV to find the initial high peak in each waveform. That will return the x-index of the point. That information and the sample clock frequency will allow you to calculate delta times.

 

Alternately, you could use a simple comparison. The output would be an array of booleans, find the first one that is true and that index would be used in your time calculations.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 7
(2,577 Views)

In what point of the provided circuit do you think I should connect threshold detector.vi? I am asking this because it is confusing for me: elements in the circuit and threshold detector work with different type of wires.. 

0 Kudos
Message 5 of 7
(2,570 Views)
Solution
Accepted by topic author Ivan899

Ok, the waveform datatype coming from the read in your original image is just the default output. You can also acquire all three channels in a single acquisition task by specifying multiple physical channels and change the output format to a 2D DBL array. In that form, the columns are the different channels in your acq task. You can then process each channel as I described.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 7
(2,558 Views)

Thank you so much! Smiley Wink

0 Kudos
Message 7 of 7
(2,555 Views)