Quote:
Originally Posted by IndySam
We have a hall effect sensor on a mechanism. The program doesn't always see the sensor (so my programmers tell me) so the mechanism doesn't stop. Knowing nothing about programming, I have been told the API isn't fast enough and not seeing it. We program in JAVA. I know the sensor is working, I have filmed it.
Are they correct or blowing smoke? What do you think?
|
If they are polling the value (probable), it's possible that they're not polling fast enough to see the input change, particularly if the signal is only there for a short period of time if your mechanism is moving very quickly. In that case, polling isn't a good solution because you'll end up with issues such as you have now.
However, the FPGA has an interrupt mechanism that you can use to be notified of state changes for signals. See the
InterruptableSignalBase of DigitalInput for more details -- in particular, the asynchronous version of requestInterrupts.