LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove dc offset from a signal

Hi! i need some help with removing the dc offset in my signal. Is there any labview function that i am able to use to remove the dc offset from my spectrum? I have seen some question asked in the forum but i cant really understand what they are saying. I really need help! Here is what i have done.

0 Kudos
Message 1 of 6
(5,986 Views)

Here is my waveform.

0 Kudos
Message 2 of 6
(5,984 Views)

Hi GG,

 

you just need to subtract your DC offset:

check.png

I have no idea why you need a while loop to calculate the same signal over and over again...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 6
(5,956 Views)

I have try to implentment the subtraction of the dc offset but i lost my waveform after the subtraction. Why is this so? Here is my vi

0 Kudos
Message 4 of 6
(5,946 Views)

Hi GG,

 

did you read the error message? It clearly says: "trying to connect a cluster to an array of cluster"...

 

You use express VIs with their DDT (dynamic datatype). When using "real" datatypes the function "FFT power spectrum" just outputs a single spectrum (instead of the array before)...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(5,943 Views)

GerdW thanx for the reply! But from my labview program, there isnt any error popping out. When i run the program it run smoothly. I cant really understand how to use an array.

0 Kudos
Message 6 of 6
(5,912 Views)