LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I remove some parts of a signal?

Thank you very much for your efforts.

 

I have another method in my mind. 

 I could use a threshold detector vi, which works fine but I don't know how to make a waveform or build array from the indices. Sorry guys I am a beginner in LabVIEW.

I have all the indexes of the "right" parts of the signal and my next step is to make it to a graph with the same X Y scales (same amplitude of the original signal).

 

I can't post my code ATM because I am working.

 

I am really appreciate all of your help.

 

P.s.: I am really sorry if I made two threads for my problem it was my mistake. That's why I should not use my phone for that. 

 

Best regards,

Gregory

 

 

 

 

0 Kudos
Message 11 of 17
(1,337 Views)

Hello everybody!

I’d like to ask for some help.

My experiment is to analyze groove milling. More precisely every moment where the cutting tool was. (where the tool enter the material or leave, etc.)

In short: I have 49 tdms files, every tdms file has about 8 to 9 million samples. In every tdms file there are 5 „block” of samples. That is where the machine was groove milling. I could take the parts out where the machine was idle (between the five grooves). My question how can I extract every portion of the signal? I’d like to display every groove milling in a new graph.

I have a rudimentary solution, that I know every block of sample (grooves) is about 500.000-1M sample and after that there is a gap. For example if the gap between two samples is bigger than „10.000 or 100.000” jump on to the next block and display it in a new graph or write the locations and amplitudo in a new array, but I don’t know how to do that or if you have better solution I would really appreciate it.

 

Thanks in advance!

A really newbie LabVIEW user

 

Ps.: Yes I know, the x scales are not the same.

Képernyőkép 2022-04-05 183032.png

Képernyőkép 2022-04-05 183044.png

Képernyőkép 2022-04-05 183111.png

0 Kudos
Message 12 of 17
(1,327 Views)

Hi Elfia,

 

no need to start a new thread for the same problem!

Unfortunately you attached a LV2021 VI, you would get more audience when attaching downconverted files for older LV versions! (File menu->save for previous…)

 


@Elfia wrote:

In short: I have 49 tdms files, every tdms file has about 8 to 9 million samples.


In short: a "signal" is an array of samples. To get a subset of an array (ArraySubset) you just need to know the element indices…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 17
(1,308 Views)

Thank you for your warning! I will pay attention for that.

 

I used the peak detector VI so now I know all of the amplitudes and the indexed locations of peaks and valleys. So in my interpretation these indexed locations can work as indices. My main problem is how to sort them into 5 separate arrays? 

 

---If the difference is less than (for example) 10.000 between "n" element and "n-1", then sort it in the first array, if the gap is greater than 10.000 start the new array, while of course finishing the first one, but after that start again loading the second array and so on.---

 

I am thinking about this, but I don't know how to do in LabVIEW.

The 10.000 is the difference of the value of indexed locations.

 

I am very grateful for ALL of your help!

 

Thanks in advance!

Elfia

0 Kudos
Message 14 of 17
(1,281 Views)

I attached my program saved in LabVIEW 20.0.

0 Kudos
Message 15 of 17
(1,243 Views)

I'd say you should also attach the test.tdms

 

 

your code can be obviously simplified

e.g. us the build array primitive in the modus "concatenate inputs" instead of insert ino array

alexderjuengere_0-1649442099404.png

 

furthermore, you can use auto indexing here:

alexderjuengere_2-1649442354700.png

 

alexderjuengere_1-1649442301303.png

 

 

0 Kudos
Message 16 of 17
(1,229 Views)

Thank you for your help.

 

Unfortunately I can't post tdms files because all of them are between 60-100 MB.

0 Kudos
Message 17 of 17
(1,196 Views)