LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is possible customize the Gauge Indicator?

Hi, I want to know if you can customize the Gauge indicators of Labview to look like this?

 

 

                                          Dibujo.PNG

0 Kudos
Message 1 of 15
(10,201 Views)

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

Andy Chang
National Instruments
0 Kudos
Message 2 of 15
(10,193 Views)

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.

Message 3 of 15
(10,191 Views)

Wilmer_S wrote:

Hi, I want to know if you can customize the Gauge indicators of Labview to look like this?

 

 

                                          Dibujo.PNG


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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 15
(10,150 Views)

I have made a similar Gauge, which looks like on the picture.

untitled.jpg

The problem is that I want to change the red arrow with a new one:

original arrow a.jpg

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.

 

 

0 Kudos
Message 5 of 15
(8,174 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 15
(8,150 Views)

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.

0 Kudos
Message 7 of 15
(8,105 Views)

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.

Message 8 of 15
(8,093 Views)

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?:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/682e59f06e441751862567ec0021cfc5?O...

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 Kudos
Message 9 of 15
(8,065 Views)

@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?:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/682e59f06e441751862567ec0021cfc5?O...


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.

---
CLA
0 Kudos
Message 10 of 15
(8,024 Views)