[FEATURE]Underwhelming look of the analogue indicator

The Perspective Moving Analogue Indicator is a bit underwhelming to look at, and has some glaring graphical "issues".

For one, the rectangles inside of the main border (e.g. the "normal range", "high/low alarm", etc.) appear to be rectangles with a stroke, which means that when the stroke from the main border and the stroke from the inner rectangles combine, they create a slightly darker "halo" due to how the anti-aliased edges combine, making it look super tacky. I don't think the inner rectangles even need strokes at all, but there only appears to be the option to remove stroke on everything.

The other things that can be improved are:

  • add the option to add a scale/ruler to either side of the bar (or top or bottom if horz). Adding a separate linear scale component to the side is fraught with positioning issues
  • add the option to display the process value at the top/bottom of the bar instead of one that follows the triangle
  • option to size the process value triangle - I feel the default is far too large and clunky
  • make the component useably resizeable. Currently, everything just stretches, including the text.
    image
    image

Something like this is really nice and clean (and I'm in the middle of copying and building myself):
image

5 Likes

Yours's looks nice!

Newbie Question:
Do you build from scratch or your copy from......somewhere? and then start modding?

Building from scratch, but copying the design of that screenshot

Yes, do that. Then please share it on Ignition Exchange so the rest of us can use it.

I'm considering it! It'll come down to whether I'm allowed to or not

image

Done!

11 Likes

Yeah that is nice
If that ends up on exchange I am definately grabbing it.

Great work mate.

1 Like

This looks fantastic! This is the format of a moving analog indicator that I have been searching for. Any chance that you'd be willing to share?

It'll be up on the Exchange shortly, it's still in review, however i've already attached it in this topic:

2 Likes

Hi @nminchin ,

Thanks for your work, it really is an upgrade from the existing analog indicator.

One small thing though, maybe I do not have the latest version, but it does not behave properly when the low value of the indicator is below 0.

Each value needs to be normalized for it to work properly:

normalized = (x - min) / (max - min)

Which gives something like this for instance for the position of the pv indicator :

Yeah I did notice this a while ago and fixed it, but never updated it sorry. glad you worked it out

1 Like

Nice work! I built one almost exaclty like yours in vision, that pulls a title and units from a template property/UDT, displays the value at the bottom like yours, and has a config popup to allow supervisors to adjust all the limits. I didn't do a graduated scale, but i like the effect you did. One thing I added also is the ability to mute an alarm based on process conditions. Such that the low or high stay gray when a system doesnt care what the PV is.

Anyway, now youve given me extra work to get mine to the visual standard of yours. Really clean.