6:29 pm
May 11, 2016
hi everyone,
I've tried to read position of a shaft by using hall sensor and phonic well then I use interrupt.vi and every time that a tooth pass in front of hall sensor, the callback.vi write on serial port the value of a micros counter.
Of course every transmitted data must be major than previous one, but sometimes it isn't true, and I don't know why.
I attached my VI
thanks all
Michele
4:37 am
March 12, 2015
It looks like you are using a Low mode for the interrupt, which means the interrupt will trigger multiple times while the pin state is LOW. So it is possible it will trigger immediately and you will see the same tick count on the next interrupt. You should probably be using a falling or rising edge as your interrupt mode. You should also increment a variable in the interrupt callback to create a counter to see how many times it is being called instead of using the tick counter.
12:15 pm
March 2, 2016
Sorry missed one file
Hello Michele
Please try the below code one at a time & check which works well.
I believe that data that is being transferred to Serial Port is more than the serial port can handle at a time.
please revert your experience we may sort this issue of your's.
Regards
Love Diwan | +91-8750410007
14
1 Guest(s)