03-09-2014 12:42 PM
Hello,
I'm working on a few custom gauges for a project. Most are fairly straight forward with inputting a new background photo and modifying a few things. However, there is one gauge that is causing me a bit of a problem. Attached is a photo of the gauge. The issue is that the spacing on the scale is not uniform. I.e. An input value of approximately 3.5 or so would cause the needle to align to 5, an input value of 9 yields the gauge value of 10. The same for the lower portion. The 15 and 20 values match reasonably well.
Anyway, my question is whether there is a way to create a non-uniform scale in the gauge. The only options I know of are linear and logarithmic. Any suggestions?
Also, I am currently using labview 2011.
Solved! Go to Solution.
03-09-2014 01:22 PM - edited 03-09-2014 01:24 PM
Hi flying,
please don't rename PNG files using suffix "JPG" - and please scale down your images just a little bit before uploading them… (Attachment is your picture scaled down to 640px and changed to grayscale.)
I suggest to use a simple interpolation (or lookup table) to convert "real" value to "value fitted for gauge". When using background images I often have to cope with non-linearities on those gauges (or images of them) and so use a small VI to adapt to this non-linearity…
You can expand that suggestion by creating an XControl that handles this conversion internally!
03-09-2014 01:52 PM
Oops! Sorry about that. Working with a new camera and software and apparently I didn't save it correctly after doing some of the image editing on it.
The idea of using interpolation/lookup-tables to do that never even crossed my mind, but that sounds like a good method for handling that problem!
Thanks!