05-22-2006 07:27 PM
05-22-2006 08:16 PM
05-22-2006 10:15 PM
05-23-2006 12:04 PM
Hello,
It sounds like you need to find some detectable distinction between the "slight swinging" motion, and the usual motion, so that you can detect that the "slight swinging" motion has occurred, and correct for it. Or it could simply be that you need to increase the amount of histeresis, to account for a slightly larger "swingback" when the object moves to the right. The bottom line is, if you have the data to determine that this slight motion is occurring, and you would like to ignore it, or correct for it, then you just need to find a characteristic or metric which is unique for that kind of motion relative to the rest of the object's motion - then you simply check for that characteristic whenever relevant to detect, and correct for, the swingback motion you're trying to get around.
Best Regards,
JLS
05-24-2006 07:33 PM
JLS,
Thank you for your reply and the helpful comments. In the VI that i made (attached on the previous post) I tried to increase the amount of hysterisis. I think this will fix the problem. I just need to determine the swingback and the actual hysterisis (shift register) that i need to put.
But looking on my VI, moving to the Left, even there is slight swingback will not change the direction. It will still show Left. Which means the swingback is not big enough that it did not change the direction.
But if moving right, and there was a slight swingback it will show Left at first but eventually show Right direction.
How can I correct the last? Is there a priority in the case struture when we are putting each other on top?
Thank you in advance.
05-25-2006 11:15 AM
Hello,
No problem, and I wish I could be more specific, but we're talking in very vague terms here - I have no idea what your data looks like, and therefore cannot specifically tell you how to implement your desired functionality. What I can give you is ideas about how to attack the problem, from which you can look at your specific data, and develop an algorithm for determining your swingback conditions. You asked:
"How can I correct the last? Is there a priority in the case struture when we are putting each other on top?"
That really depends on what your data looks like - you need to distinguish that "swingback" condition - perhaps it's as simple as "looking for" a R-L or L-R transition in a short period of time. If that kind of transition doesn't happen quickly at any other time, then it would be an indicator you could use to detect and correct for the swingback. You're going to have to look at your data, and determine a condition which defines the swingback - and that can only be done by you with your data.
If you run into problems with LabVIEW or have more questions, feel free to post them here, but I don't think there's enough information here to give you a greater level of specificity on how to proceed.
Best Regards,
JLS
05-25-2006 07:03 PM
05-26-2006 11:38 AM