10-28-2022 04:24 AM
Hi to everyone,
is there a property or a workaround to have the scale properies (max and min for example) of a Gauge or a Slider modified runtime? I need the user to have to ability to change the range in function of some user configuration and I am not able to figure out a way of doing it.
I was assuming this feature as basic (for example the graphs have it) and now I am stucked on the interface developement for an industrial controller. I am a long time Labview user and this is a big miss in my opinion on G Web.
Thank you in advance if someone has some advice or show me where I am wrong.
Solved! Go to Solution.
11-03-2022 06:20 AM
Really good question, only property of Gauge-Scale is Visible, sometimes RangeCustomDiagramTypeId (very odd name) pops up with errors, seem very buggy to me
11-03-2022 10:10 AM
If I get some time this weekend I can take a whack at implementing the scale range similar to Milan's ControlExtensions.
11-07-2022 10:13 AM
Thank you, I've found the attributes of my gauges and tried to manually mody them: it works!
Anyway I'm a total noob with html/JS/CSS so I don't think I am really able to write down a custom piece of code that dynamically changes these attirbutes. Since this is a quite common functionality I hope NI will implement this dynamic range adjustment in some future release.
11-07-2022 12:42 PM - edited 11-07-2022 12:43 PM
Chatted with Milan, there'll be a library you can download and use in your project soon.
11-07-2022 04:12 PM
I updated the example that Derrick mentioned and made it available on the Control Extensions for WebVI example code page. The example includes a VI that can be used to configure the minimum and maximum of some numeric controls like the gauge and slider. Controls like the Numeric Text that have property nodes for setting maximum and minimum should use those instead.
Hopefully the example provides a good starting point!
11-15-2022 06:17 AM
Thank you! Great!!!