LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analysis of the input amplitude

Hi,
i m working on a project in which i have to read the input signal and seperating an specific amplitude and the rate of this amplitude.
i think that this can be done by using a case structure. but the problem is that the output of the signal which is in the form of array is not connecting with the input to the case structure.
and i m also finding diffculty in putting up a counter and noting the time of the signal.

Thanks
G.Mustafa
0 Kudos
Message 1 of 6
(3,112 Views)
Hello G. Mustafa,

How are you bringing the signal into LabVIEW? Is it waveform data, or simply an array of scalars? If you want to execute the code in your case structure for each element of the array, you can wire the array into a for loop and enable auto-indexing. If you use the waveform data type, the time of the signal will be part of the data type.

If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.

Have a nice day!

Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,112 Views)
Thanks for replying. Actually i m reading a sound data which is in mono 16 and forming a 1-d array. and i have to work on special values.
Hope u have understood my point.
Thanks
0 Kudos
Message 3 of 6
(3,112 Views)
G. Mustafa,

How many elements are in the array? i.e. how many samples are you getting at a time? Do you want to know if any element in the array equals a certain value or do you want to iterate over the entire array and run some code on each value that equals what you are looking for? You could either use the �Search 1D Array� function or input the array into a for loop, turn auto-indexing on, and compare each value with your target value. The out put of the compare could be wired into a case structure that will run the code you want if you find the value you are looking for.

If you don�t already have it, and are looking for some more advanced functionality, you may be interested in the LabVIEW Sound and Vibration Toolkit.

Hope this
helps and have a great day!

Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,112 Views)
Thanks for replying. as u asked, there are about 37500 number of samples that are coming in the form of amplitudes that are placed against the time period on the waveform graph. There are some repeated amplitudes in the graph and i want to count them and note down their repeatation time period.
Therefore i tried to make a counter for the pulses and the interval between each pulse.
I think that u had understood the task.
Thanks very much for ur coperation
G.Mustafa.
0 Kudos
Message 5 of 6
(3,112 Views)
G. Mustafa,

I would recommend using a for loop. Inside the loop you can check each value. When you see your target value, note the iteration of the for loop. You can subtract the value of the iteration for the last target value to tell you how many samples are between it and the last target value.

Have a nice day!

Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,112 Views)