I'm trying to measure pulse period continuosly with PCI-6601. The input signal frequency varies from 10 to 100Hz and comes from slotted opto switch. The problem is that every single electrical machine around seems to generate noise spikes to signal. I'm using shielded cable and connector block, but they are not enough. I still get 10 to 2000 pulses when I switch on (or off) the ceiling lightning. PCI-6601 can use programable filtering, but it just reduces measuring accuracy and I still get unwanted pulses. This is very frustrating. Suggestions?