06-02-2011 11:18 AM
DSRTM wrote:I'm after a solution to making the needle sweep through a scale that is not equally spaced. if you look at the gauge I posted in the first message - while in vacuum from -30inHg to 0 the scale divisions are different from the 0-30 psig side. Basically I need to tell Labview where the 0 is, and where each extreme is.......and have each number between make sense. I can't figure out of that's possible.ThanksThis will give you the angle from the 30 inHg mark to any point on the dial. Enter the value you're interested in and set the boolean toggle to True for inHg and False for psi. So, if you want to find the angle to the 20psi mark, enter a Value of 20 and set the Unit of measure boolean False - the answer is 209.642 degrees.
06-02-2011 11:54 AM
I would always use the same unit for the gauge scale (say psi) and selectively convert the numeric input depending upon its sign. The numeric scale of your gauge would go from -15 to 30. Use something like the following to convert your input (-30 to 30) to get the value to input to the gauge (-15 to 30).
I add and remove the units, so the controls and indicators remain unitless.
Tweak the scale of your control to get it to align to the picture.
06-02-2011 11:54 AM
@jcarmody wrote:
[...] so I bought my first National Instrument product - a disk with a bunch of ActiveX objects, one of which was a curve fitter that I used in a VB project.
It was ComponentWorks...