LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem to remove dc offset from different signals

Solved!
Go to solution

Hi !

 

I work for a signal processing subject. I acquire three different signals from three accelerometers ( Position x,y and z). The sampling frequency that I chose is 25 Khz.

 

My problem is at the subtraction of the offset from the signals . the following error appears : "Error occured at subtract -1802 in READ-TDMS.vi

 

I really need help! Here is what i have done

 

Thanks!

Download All
0 Kudos
Message 1 of 10
(5,693 Views)
Solution
Accepted by topic author mehdi33

Is this what you ment?

Message 2 of 10
(5,678 Views)
Solution
Accepted by topic author mehdi33

Wouldn't it just be simpler to have AC coupling on each accelerometer?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 10
(5,659 Views)

 

Hi AdamTrojak !

 

Yes that's what I wanted. Thanks for your help! 

0 Kudos
Message 4 of 10
(5,617 Views)

 Hi 

 

Yes you are right. I did not know at the beginning of my tests that AC coupling eliminates the offset of the signal.

 

Thanks for the information!

0 Kudos
Message 5 of 10
(5,613 Views)

Hello! 

I'm glad that I could help.

If you find my post as solution - mark it as solution 😉

0 Kudos
Message 6 of 10
(5,597 Views)

@mehdi33 wrote:

 Hi 

 

Yes you are right. I did not know at the beginning of my tests that AC coupling eliminates the offset of the signal.

 

Thanks for the information!


Hi, mehdi33:

 

An additional reason why I suggested AC coupling was, as a general rule, you should clean up your signal as much as possible with hardware before subjecting it to measurment instruments.  Let's take a situation applicable to your situation, but using numbers convenient for discussion.

 

Let's say you have a setup where your accelerometer amplifier accepts a peak signal of 5 Volts.  Your accelerometer puts out a signal that has a peak voltage of 3 Volts.  We're okay right now.  But what if the DC offset is +2.5 Volts?  Now you have a 3 Volt signal plus a 2.5 Volt DC offset = 5.5 Volts!  Assuming the manufacturer was exact and not conservative with the amplifier spec, you're probably going to get some clipping!  Maybe a worst case scenario is that you blow something up!  No amount of software compensation will allow you to recover the original waveform - or damaged equipment - (although there are some algorithms that can do a reasonable guesstimate of what the signal used to look like).

 

Just my two cents worth of input.  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 7 of 10
(5,534 Views)

One caution: If you are using gravity to do some initialization or "calibration" of the accelerometer, then you will need DC coupling.

 

Lynn

Message 8 of 10
(5,519 Views)

@johnsold wrote:

One caution: If you are using gravity to do some initialization or "calibration" of the accelerometer, then you will need DC coupling.

 

Lynn


Oh, I actually did not know that!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 10
(5,502 Views)

Hello!

 

Thank you very much for your advice. it helped me to better differentiate between the AC coupling and DC coupling!

 

Best regards!

0 Kudos
Message 10 of 10
(5,482 Views)