LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Control (creating a pressure gauge)


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.
Thanks
This 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.

gauge.png 

 

FP.PNG

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 21 of 23
(877 Views)

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).

 

PressureUnits.png

 

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.

0 Kudos
Message 22 of 23
(865 Views)

@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...

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 23 of 23
(864 Views)