11-18-2005 06:05 AM
11-18-2005 06:22 AM
Hi
Attached is a simple solution how you could do it.
Hope this helps.
Thomas
11-18-2005 08:36 AM
11-18-2005 08:41 AM
11-18-2005 09:02 AM
Hi
I changed it to a "LV2-Style Global". Search the forum on this topic to understand how these vi's work.
You can now use it as a sub-vi.
Hope this helps.
11-22-2005 04:14 AM
06-20-2011 02:22 AM
Dear Mr Thomas,
I am making some revision or to add some function to the sample VI you had made before
on this old thread.
Kindly see the attached VI.
The VI demonstrates that if the distance decreases it turns ON the LED. And turns OFF if the other way.
I would like to add the following;
1. if the object stops moving the default will be Decreasing.
2. if the object moves to the right (increasing) and moved more than i.e. 0.2 then it must demonstrate
increasing. I want to do this to compensate for the backlash or vibration of the moving object.
Always thanks for your kind help.
Regards,
06-20-2011 04:45 AM
The Sub-vi's comparison should then be >= 0.2 to be true, else false
/Y
06-20-2011 08:38 PM
thanks for the reply, but i dont get it..its does not satisfy
the function i need.
06-21-2011 06:13 AM
It seems you're asking for a schmitt-trigger function. If so, you'll need to keep track of previous value in a similar fashion. If the measured value is < -0.2 or > 0.2 then it'll (de)activate else it'll use the previous.
/Y