I understand know how it works, thank you.
but for some reason it doesn't work. Here's how I wired it:
And here's the LabVIEW code:
there was kind of a bug that confirmed some values are passed: we accidentally put the sensor on an aluminum plate that caused it to always pass a positive value, so the counter raised it's value (quickly, like anticipated).
but when we figured out the mistake we have made we removed the sensor from the plate and now it doesn't pass any values at all (the counter doesn't rise)