Animating Text and/or Borders

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Animating Text and/or Borders

Post by Brian »

Is there a method to change text color depending upon bit variables?
example... text is normally white
bitvar1 comes on, text color changes to yellow
bitvar2 comes on, text color changes to red

Also, can the same be done for hollow (transparent) rectangles? Border color changes with bit variable(s)?

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Animating Text and/or Borders

Post by mark.monroe »

What can be changed dynamically at run time via tags is under the Dynamics tab. Font colors can be changed under the general section.

The best thing to do is explore the Dynamic tab and see what can be changed and what cannot be changed.
Snap 2012-10-30 at 10.58.50.png
Snap 2012-10-30 at 10.58.50.png (89.29 KiB) Viewed 9720 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Re: Animating Text and/or Borders

Post by Brian »

I only see color changes by variable values (i.e. analog) but not on bits.

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Animating Text and/or Borders

Post by mark.monroe »

A bit is ether a 1 or a zero, which means that you can only use two colors. You can use a bit tag to change a color. Any colors associated with values > 1 will not be usable because the tag will never reach those values.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Re: Animating Text and/or Borders

Post by Brian »

What I would do in (for example) Vijeo Designer is create a transparent N-State Lamp (no background or border) to display 3 (or more) states using 2 (or more) bits. Same text (or different) for each state.
Bit1 OFF and 2 OFF display white text lable
Bit1 ON and 2 OFF display yellow text lable
Bit 1 OFF and 2 ON display red text lable

and so on...

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Animating Text and/or Borders

Post by mark.monroe »

In iX the best way would be to use one analog tag (like int16) and then you sent the range of values in the Dynamics->Fill dialog box that you want that color to show up for.

Start Value 0
End Value 0
Color blue

As long as the tag is equal to 0, blue will be the fill color.

Start Value 1
End Value 5
Color red

Which means that as long as the tag is between 1 and 5, red will be the fill color.
Snap 2012-10-30 at 13.34.37.png
Snap 2012-10-30 at 13.34.37.png (32.68 KiB) Viewed 9713 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply