LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Filter Noise

Solved!
Go to solution

how do you " trigger on the polarity with a zero-crossing detector"??

0 Kudos
Message 11 of 21
(915 Views)

Thanks for the clarification on the10x probe. I was thinking that your DAQ card was (or about to be) toast 🙂

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 12 of 21
(908 Views)

With the Basic Level Trigger Detection VI.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 13 of 21
(897 Views)
Solution
Accepted by Dennis_B.

I very slightly modified the code you posted to add digital filtering, with a default min pulse width of 2 msec.   Give it a try.

 

Kevin_Price_0-1681949643165.png

 

 

-Kevin P

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 14 of 21
(884 Views)

@Dennis_B. wrote:

Here are a couple screen shots. The last shows what I need to filter out.


You didn't install the Ferrite on the USB cable correctly as shown in the Getting Started guide for your X Series DAQ product.


"Should be" isn't "Is" -Jay
0 Kudos
Message 15 of 21
(881 Views)

Hi Kevin,

 

I kept getting the attached error. I tried everything in the Ni help for this error, no oy. Do you think this might be easier by using edge counting. I can send the signal to an analog input. I tried this before but had the same issue of the DAQ counting the 20 kHz spikes. Maybe there is a way to set a minimum and maximum threshold between the zero and five volt signals. I also tried a ferrite core as suggested, no joy. This isn't an external noise issue but it was worth a try.

0 Kudos
Message 16 of 21
(862 Views)

That's a timeout error which seems to suggest that the digital filter might also be suppressing your ~100 Hz signal, not just the 20 kHz noise.

 

To be honest, I've had little occasion to need to use digital filtering myself.  I thought I had a fairly solid understanding of how it worked, but perhaps there are some hidden gotchas?

 

Try taking a shipping example for edge counting and inserting a similar digital filter property node.  And be sure to navigate the property menu by way of edge counting rather than frequency measurement.   Does the 2 msec pulse width setting prevent you from getting any counts from your ~100 Hz noisy signal?   What happens as you vary the pulse width setting?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 17 of 21
(843 Views)

At the risk of repeating myself.  

 

The noise shown in the png's attached earlier is EXACTLY what the USB X Series device's Ferrites are provided to suppress.  If you've seen it before, it is unmistakable!  Read the getting started guide.  It even shows pictures of how to install the Ferrite correctly. 

 

Once the HARDWARE is properly connected we can look at other sources of trouble.

 

Kevin,  you should have known better than to ignore my earlier post.  😉


"Should be" isn't "Is" -Jay
0 Kudos
Message 18 of 21
(836 Views)

Jay,

 

Not ignoring, just no knowledge about the ferrite treatment and staying in my lane with other things I'd be inclined to try.  😁

 

 

-Kevin P 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 19 of 21
(822 Views)

Just to clarify, the ferrite goes on the end of the POWER cable.  OP, make sure you follow the picture: make one loop of the cable and put it as close to the DAQ as you can.

Let us know if that clears up the signal...

 

NIquist_0-1682430834949.png

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 20 of 21
(798 Views)