I have acces to the computer with LabVIEW and the pictures next monday, so I can upload some pictures then. It is the entire bar that rotates, I thought maybe it is possible to measure the position halfway the bar where he is straight, so the results will be almost the same at the different points.
(halfway the thick part (thats the important part)) You can't see it on this photo, but the end of the bar deviate if he rotates.
So it is more like the needle on a dial? That is much simpler than what you described before.
I would recommend using the threshold the way you are now. Use IMAQ Particle to find the center of the red object. Subtract the center of rotation (select using mouse) to get the relative position of the center of the object. Use atan2 to get the angle of the needle.
This isn't going to be exact, but it should work pretty well.
It totally worked!!, many thanks, I did it with the combination edge detection and treshold, see the attached images.
Just one more question, is there an way to add a scale to the picture, so you can visually check the position of the 'needle'?