Dynamic Carets on Linear Scale

I have a project with ~ 30 servo drives. Each servo has a linear scale showing the actual position, and another linear scale showing the actual force. I am trying to add carets to each linear scale that show some of the positions and I have been successful in using an indirect tag on the template to show ONE of the positions. I have two problems/questions.

  1. Each drive has a different amount of positions ranging from 2 - 15. I am creating the carets in the template so would I have to create 15 on all since this is the max? I tried to use a static value for the extra positions that aren't used on certain drives that is outside of the scale value so they don't show up but this is tedious and I think there must be a better way.
  2. The same template is used for Force and Position. This means the base amount of carets that I need for positions (15) would be part of the Force display as well, and there are even less forces. Each drive would only have 2 force values, so what would I do with the other carets?

I am still new to ignition so any help is appreciated! TIA

Can you show what you are calling a"caret".

In theory you can easily generalize this, though I would be tempted to use a paintable canvas in this instance, though that may be overkill. I don't understand enough of what you are looking for and how you are currently trying to achieve to offer up much assistance that I trust would answer you issues.

It wouldn't be very difficult to send a count parameter to the template to "hide" the carets that are unused.

1 Like