LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is Similar button available in Labview Pallette or should i make customized one?

button.PNG

0 Kudos
Message 1 of 11
(1,078 Views)

Hi power,

 

classic palette -> simple rectangular button. Then apply colors as needed.

 

(When you need the shadow you will need to customize the button…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(1,073 Views)

DMC's GUI Suite has some of those under buttons and radiobuttons.

https://www.ni.com/en/support/downloads/tools-network/download.gui-suite.html

-----------------------------------------------------------------

If you can not measure it, you can not improve it.
- Lord Kelvin
Message 3 of 11
(1,006 Views)
0 Kudos
Message 4 of 11
(986 Views)

The DMC GUI Suite is excellent, but I see performance issues when a front panel containing these controls is open.

 

For example this FP (with no code except the buttons):

DMC FP.png

 

When FP is open:

DMC CPU FP Open.png

When the FP is Minimized:

DMC CPU FP Minimized.png

Tested on LabVIEW 2018 32 bit running natively and LabVIEW 2018 64 bit running in a VM.

 

This CPU usage doesn't make sense to me. It would be nice if others could verify this issue.

I ended up creating a few of my own buttons which didn't have this problem.

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
Message 5 of 11
(972 Views)

Hi Steve,

 


@stevem181 wrote:

This CPU usage doesn't make sense to me. It would be nice if others could verify this issue.


I don't see this behaviour on LV2019/i7-12800H: it stays at <2% CPU no matter the frontpanel  is open/minimized/maximized…

(The "2%" is with lots of background tools/services on this business laptop due to company IT management.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(948 Views)

Also don't see increased CPU usage with this VI on my PC (LabVIEW 2023Q3 x64/Win10).

 

But I have another question. Just curious - which control was used as template for this button with rounded corners? Usually when graphic is inserted as picture items, then the radius of the corners will be resized together with control, but in this case it keep the shape, for example, compared with Classic Control:

Screenshot 2023-09-13 08.52.34.png

And this is the button with six states:

Andrey_Dmitriev_0-1694588250098.png

How to create such customized control step by step from the scratch?

 

Message 7 of 11
(929 Views)

I have the exact same problem. Having even three or four of the DMC GUI buttons on a panel (at edit- or run-time) pins my CPU at 20%. The load disappears when the panel is minimised. Interestingly, it's not a problem if I compile the output to a .exe and run that. 

 

It's a shame as the DMC tools are beautiful, but I can't use them like this, so will have to find an alternative.

0 Kudos
Message 8 of 11
(135 Views)

@Andrey_Dmitriev wrote:

Also don't see increased CPU usage with this VI on my PC (LabVIEW 2023Q3 x64/Win10).

 

But I have another question. Just curious - which control was used as template for this button with rounded corners? Usually when graphic is inserted as picture items, then the radius of the corners will be resized together with control, but in this case it keep the shape, for example, compared with Classic Control:

 

How to create such customized control step by step from the scratch?


The secrete is in the image imported during customizing, not in the original control.

I don't know which image they used.  There are a few such images available.  See attached VI.

 

George Zou
0 Kudos
Message 9 of 11
(99 Views)

Hi Alex,

I have the exact same problem. Having even three or four of the DMC GUI buttons

> on a panel (at edit- or run-time) pins my CPU at 20%.

 

Sorry you also have this issue but it's nice to know that I'm not the only one.
My video setup is a bit unusual, but maybe there is a common trait.

 

The video card:
AMD FirePro W600 (6 DisplayPort outputs with 6 2560x1440 DP monitors)
This is a PCIe 3.0 x16 board used in a PCIe 4.0 AMD motherboard.

 

I have tried running the DDU v18.0.7.5 utility a couple of times and installed the
latest drivers but still no success. Also tried switching the video card with the
same model with no change.

 

What is your video setup?

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 10 of 11
(66 Views)