Smart Image and Text Widget

Request New Features here.
young123
Posts: 14
Joined: Thu Jan 16, 2014 4:59 am

Smart Image and Text Widget

Post by young123 » Wed May 28, 2014 6:45 am

I have tried to use both smart image and smart text widget.

If you have only a one to one relation between widget and variable this works ok (Except it does not accept negative values.)

A problem occurs when you use e.g. two smart text widgets that use the same variable.
The text is directly coupled to the variable.
This should NOT be !
The text should be coupled to the specific widget.
Why ?
Because now I can't use the same variable in two widgets to show separate values.
When I change the text for the same variable value, both widgets will be the same.
That is very weird.

Can you comment on this ?
I use PV 2.7.10419
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Smart Image and Text Widget

Post by stalley » Wed May 28, 2014 8:13 am

Hi!

I'm not sure I understand what you want to accomplish. There are usually many ways to solve a problem.

You are correct that each widget, gauge or object when tied to a specific variable cannot be set to two different values. A programmer would not expect two text gauges tied engine speed parameter to be able to show two different speeds, since the programmer has chosen to bind it to the same variable.

You apparently have two parameters or objects that need to use the same text on different widgets, perhaps you can find a way to retrieve the text at the position you need, rather than changing the actual variable with the text. Does that make sense?

Are you configuring a color display or a monochrome?
Sara Talley
Software Engineer
Enovation Controls
young123
Posts: 14
Joined: Thu Jan 16, 2014 4:59 am

Re: Smart Image and Text Widget

Post by young123 » Fri May 30, 2014 6:07 am

Hi,

What I meant to do is showing several text + image rows that contain information that is linked to a specific value of one variable.
I use this in a help menu were a Lamp gauge can have several pictures.
When a lamp gauge is selected here, I want to show all the possible pictures of the lamp gauge including a description per picture.
See attachment.
Here the hazard light gauge can also be used to show left and right direction.

Now I have to use one variable for each row. Basically I use one as a counter that indicates which lamp gauge is selected.
In the attachment that is the hazard lamp gauge.
The other 3 variables are just copies of this counter.
Thats the only solution I can think of to circumvent the somewhat strange dependancy between text and variable instead of a 1-1 relation between widget and text.
This prevents me using the same variable into several widgets.
E.g. when I try to enter text in a second widget, the original text of the first widget is overwritten.

N.B. I also found some irregular behaviour when editing the description and or value of the Enumeration Values. It occurred several times that I could not change a value. This was possible again after restarting PV and opening the configuration again.
Attachments
ScreenCapture8bMurphy.png
ScreenCapture8bMurphy.png (43.65 KiB) Viewed 97 times
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Smart Image and Text Widget

Post by stalley » Fri May 30, 2014 12:33 pm

It appears that you have found a solution to your situation!

If you will provided us with specific details about the problem you encountered, we will try to recreate the problem to find the issue.
Sara Talley
Software Engineer
Enovation Controls