[Visual-devel] Re: RE: RE: again compiling version 0.0.17
Status: Alpha
Brought to you by:
lettoz
From: Thomas H. <Tho...@we...> - 2002-11-07 11:50:16
|
"Juan Carlos Orozco" <jo...@ac...> schrieb am 06.11.02 20:01:56: > One more thing, are you planning to allow the user to write the name of > the cell to which a widget is linked in the kal3 applet (toolbar) of the > visual designer. This field should be an input field of type string so > it will take the cell address or a tag name. Yes, but PLANNING means it has yet to be done. And there should be such input lines for each parameter, not only the main value, because you can bind any numeric parameter to a variable if you replace it with a coordinate (or what your CI, e.g. a matplc CI. accepts as a variable name) Assume you replace the x-position by a cell address, which would let the widget show up at the position given by this cell (useful to show moving parts of a machine). Now let's assume there were input lines and you do your design. First you place an element with the mouse and now you open the input box and change the x-position from 123 to A1. Now the hmiNoCi places a key-value pair (A1,0) into it's internal variable hashtable. The widget will spring to x=0. A first step to a solution is to put the actual value into the hashtable (A1,123). Now lets assume you have assigned a variable A2 to the main value of a digital display. But after doing so you want to see how it looks when maximum is reached and colors change. You replace the "A2" by a number again, adjust the max colors to your likings and change it back to "A2" again. To simplify this work as much as possible I want a dialog for the parameters, which has two input lines and something more: Variable: takes the cell coordinate or other variable definition in case of other CI. Simulated value: A replacement value that is shown in absence of the server and used in design phase. Radiobutton to choose the source of the value during design: 1. Simulated value 2. Internal variable table 3. real server. 1. is the same behaviour as now 2. Gives the user a realistic preview about what happens when connecting more than one widget to the same variable (I do that often with a potentiometer and a digital display. And it is really necessary to make the single elements of a coded switch hmiRollSwitch work together). 3. test with the real world. Maybe the switch for internal or real variable should be global for the page. The real world connection could be achieved this way: A special communication interface hmiDesignCI evaluates the parameter "communicator" and loads the CI as a "slave". If the switch is set to "real world communication" it takes the values from the slave Ci, otherwise it provides values from it's internal table. When the design is saved, the variable names are put on the parameter lines if they exist. Otherwise the numeric value is put there. Now comes up the next difficulty: The user should be able to save the current state of a design to continue at exactly the same point later. Let's assume he replaces a parameter value of 123 by A1. The internal variable A1 would be created in this moment and set to 123 for continuity. Now he saves the design and on the parameter line appears A1 instead of 123. When he reloads this page in designer, there is no information that the simulated value of A1 was 123 in the previous designer session. We could either accept this or we would need an extra file to store the simulated values. Further TODOs: 1. For colors there should be a special dialog or selector. 2.There should be dialogs for "global parameters" i.e parametrs asigned to the page and not to a widget like background file name, refresh rate or server address. 3. Maybe there should be a way to read all parameter lines back from the textarea. > > What I am doing now is to use the designer and then manually changing > this tag. So do I :-) But the first goal of the designer applet was to make it easy to place and size widgets so that they fit to a given background drawing. > > Automatizacion y Control Electronico (ACElab) > Industrial Automation > www.ace-lab.com > ________________________________________________________________ Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13 |