Ralphie Posted January 19, 2011 Report Share Posted January 19, 2011 I have an expanded V130 and am testing a 570. 12 bit analog inputs. I have been searching all the functions and help screens and haven't found an answer. This may be an easy one for someone out there. I'm making a 0-5 inch measurement with a linear potentiometer and displaying that in text and a bargraph on the screen. In thousandths of an inch. I want to get rid of the pot and use a ultrasonic distance sensor. After looking at the specs of the transducer and my setup it looks as though my maximum and minimum readings of these two types of devices may be opposite. Is there a way to invert a analog input inside the program that will make this work and in real time? Thanks Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted January 19, 2011 MVP 2022 Report Share Posted January 19, 2011 See other post Quote Link to comment Share on other sites More sharing options...
Emil Posted January 19, 2011 Report Share Posted January 19, 2011 It seems you just need to use Linearization block (math menu) with the rigth settings for X1, Y1, X2 and Y2. If you just want to "invert" AI, for 4-20 mA 12 bit the values ned to be X1 = 819; Y1 = 4095; X2 = 4095 Y2 = 819. I guess you wil lneed to make conversion direct to length, but the tip above will help you to find the direction. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.