05-05-2010 05:35 PM
Hi, I want to know if you can customize the Gauge indicators of Labview to look like this?
05-05-2010 05:57 PM
You can definitely customize your indicators/control in LabVIEW.
Here are some examples
http://decibel.ni.com/content/groups/ui/blog/2009/05/20/a-ui-challenge-and-a-labview-response
http://decibel.ni.com/content/docs/DOC-6325
http://decibel.ni.com/content/docs/DOC-4028
05-05-2010 05:59 PM
You can customize controls using the control editor. You can replace parts with graphics. Not sure how you'd do the larger tick marks, though. There is a section in the LabVIEW Help on customizing controls.
There are also some examples in the UI Interest Group community.
05-06-2010 08:08 AM
Wilmer_S wrote:Hi, I want to know if you can customize the Gauge indicators of Labview to look like this?
Check out the links for this tag.
The hardest part will be the needlt and the needle's shadow.
If those are important then you will have to use a picture control to render the needle and shadow over the static background.
Ben
02-03-2015 06:11 AM - edited 02-03-2015 06:18 AM
I have made a similar Gauge, which looks like on the picture.
The problem is that I want to change the red arrow with a new one:
When I replace it with the editor, it does not rotate properly. It only moves the whole picture, but the arrow does not change the tilting angle. Can someone solve this problem and post the file with properly rotatable new arrow? The arrow and the control file are attached to this post.
02-03-2015 09:11 AM
You will have to wait for a future version of LV to be able to reaplce the needle and get it to rotate. If you search enough you will eventually find a post by Rolf Kalbermater who spoke of the the graphics format used, its source back in the early days of LV on the Mac blah blah blah. As I posted years ago, if you really need to replace the needle you will have to "roll-your-own" and render the image using a picture control.
Christain posted code that demonstrates how to ratate an image and display it in a picture (I think I tagged it). Throw in some mask details and it is do-able. Depending on the size and how often it needs to be udpated, it may not be too much of a CPU hit.
Offering what little I can and hoping that some youngun will prove me wrong so I can learn how to do this as well.
Ben
02-04-2015 05:53 AM
Thank you for a quick reply. I see what can do with the plan you propose. If I succed, I will post the result here.
02-04-2015 06:17 AM
If you want a custom needle, this is ideal fodder for a 3D picture display. If you display it as a couple of textured quads in 3D (or a quad for the face and a piece of custom geometry for the needle) you effectively get 'real time' rotation for free with negligible CPU overhead.
I have some code to do '2D in 3D' (attached). It needs cleaning up but it gives you the basics. It's based on LV's 'solar system' example.
02-04-2015 10:31 AM
The following links may help you Wilmer_S:
Customizing the Gauge Control in LabVIEW:
https://decibel.ni.com/content/docs/DOC-4819
How Can I Get a Thicker Needle in a LabVIEW Gauge, Meter, Knob, or Dial?:
02-05-2015 01:39 AM
@DavidPrrs wrote:
The following links may help you @Wilmer_S:
How Can I Get a Thicker Needle in a LabVIEW Gauge, Meter, Knob, or Dial?:
That link probably won't help.
"Note: This solution is for older versions of LabVIEW (version 5 and 5.1). For more recent versions of LabVIEW it is not possible to adjust the needle thickness, but there are other types of customizable components in these controls. Refer to the Related Links section for more information."
Forum user RC-Freak has, however, spent a lot of time making some beautiful customised gauges for their quadcopter GUI. Check through the attachments in that thread to see some of the results.